Skip to main content
Question

HTTPCaller (PDF) write to MS SQL database

  • January 29, 2019
  • 1 reply
  • 14 views

01011010
Contributor
Forum|alt.badge.img+2

Is it possible to download a PDF file and then write that data to an MS SQL table?

 

Any help would be greatly appreciated!

I am able to download, using the below. However I am not able to write to SQL as VARBINARY(MAX).

Almost there....

1 reply

Forum|alt.badge.img+2
  • January 29, 2019

FME SQL Server writer does not support the creation of a VARBINARY(MAX) in a feature type. However if you use the Microsoft SQL Server Non-Spatial (JDBC) writer it does support varbinary(MAX) as varbinary_max data type

 

If you are stuck with the SQL Server (ADO) version of the writer: create the table ahead of time (you could use SQLCreator/Executor), you should be able to write to that field OK. When you import the table your created as a feature type, FME will set the data type to 'image' but it seems to work OK.

If that is not working for you then adding a sample workspace to this question might help someone identify the problem


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings