Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 convert access package (ole object) to binary

Author  Topic 

raginbullsht
Starting Member

8 Posts

Posted - 2009-04-28 : 13:10:36
I have an access db that has 14000 jpeg images imbedded into the database and I am trying upload it into sql 2005, but when I am using the sql database with an asp page the images are not displaying properly.
According to the asp develeper the problem is with access and sql when converting ole objects to simple binary.

[url]http://demo.asprunner.net/jason_heyman_bgohio_org/card2/[/url]


is a link to the asp page. Click on any of the view icons to see the jpeg issues.

raginbullsht
Starting Member

8 Posts

Posted - 2009-04-28 : 13:38:12
I see this is somewhat covered in the sticky. Most suggest that I want to use links instead of blob data, but the end users of this web interface are very limited with computer skills and will not properly create links as need when new data is uploaded.
Go to Top of Page

whitefang
Enterprise-Level Plonker Who's Not Wrong

272 Posts

Posted - 2009-04-28 : 14:10:03
No, the proper design should be that your DB should have "links" to the physical file. The user would upload the file through your web-interface which would store it on the server and then insert a link (the path) in the DB record.
Go to Top of Page

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2009-04-28 : 14:15:42
What version of SQL are you using and how are you importing the data from Access into SQL?
Go to Top of Page

raginbullsht
Starting Member

8 Posts

Posted - 2009-04-28 : 14:44:19
I am using sql 2005 and I am having the images directly scanned into the database by a contractor. Once all the records have been pushed into the database the end user will view/edit or upload any image changes with a asp page. I have a sample listed above
Go to Top of Page

maxime.gaboury
Starting Member

1 Post

Posted - 2009-05-14 : 10:00:10
So how can you transfert OLE OBJECT to BINARY Object?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-05-19 : 01:42:26
You can create a new VARBINARY(MAX) column and transfer all data between the two columns

UPDATE MyTable
SET NewVarBinaryMaxColumn = OldColumnNameHere



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-05-30 : 05:36:21
Also see http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=124283


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -