Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8653

Read Image file from BLOB.

$
0
0

Hi All,

 

I am trying to load data from BLOB data from database and save the image file.

 

SQL to insert data:

INSERT INTO BLOBTest (BLOBName, BLOBData)

SELECT 'First test file', BulkColumn FROM OPENROWSET(Bulk 'C:\Inbound\logo.jpg', SINGLE_BLOB) AS BLOB

 

 

I am using the following 'SELECT top 1 BLOBData from BLOBTest' to get the data and setting the value to 'Image Saver' action. The image file is saved to the specified path, but the image is not opening.

I get "Image is damaged, corrupted or is too large message. The file is around 40 KB."

 

Am i missing something.

 

Any help would be highly appreciated.

 

MII Version: 14.0 SP 3

 

Thanks,


Viewing all articles
Browse latest Browse all 8653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>