dbTalk Databases Forums  

Storing pdfs in an image field

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Storing pdfs in an image field in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arlyn
 
Posts: n/a

Default Storing pdfs in an image field - 05-13-2005 , 10:51 AM






I am using an image datatype to store multiple filetypes includeing plain
text data. it works except for pdf Data. When I retrieve the the file
couldn't be opened in acrobat reader and the file was 3KB bigger than the
original.
Any suggestions would be helpful.



Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: Storing pdfs in an image field - 05-14-2005 , 02:19 AM






Hi

You don't say how you are importing/exporting these, but you may want to
look at the textcopy sample.
If you don't need to hold them in the database it would be easier to just
store the file location information.

John
"Arlyn" <Arlyn (AT) ideapoint (DOT) ca> wrote

Quote:
I am using an image datatype to store multiple filetypes includeing plain
text data. it works except for pdf Data. When I retrieve the the file
couldn't be opened in acrobat reader and the file was 3KB bigger than the
original.
Any suggestions would be helpful.




Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Storing pdfs in an image field - 05-14-2005 , 03:39 AM



John Bell (jbellnewsposts (AT) hotmail (DOT) com) writes:
Quote:
You don't say how you are importing/exporting these, but you may want to
look at the textcopy sample.
I don't think so. This sample uses DB-Library, which should not be used
for new applications.

Quote:
"Arlyn" <Arlyn (AT) ideapoint (DOT) ca> wrote in message
news:1189j851kjjnm5e (AT) corp (DOT) supernews.com...
I am using an image datatype to store multiple filetypes includeing plain
text data. it works except for pdf Data. When I retrieve the the file
couldn't be opened in acrobat reader and the file was 3KB bigger than the
original.
Any suggestions would be helpful.
If it works for other types of files, it may be something pecuilar with
PDFs, which I don't have any knowledge of.

It would help if you told us you store the files. Sample code would be
a good thing.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Reply With Quote
  #4  
Old   
John Bell
 
Posts: n/a

Default Re: Storing pdfs in an image field - 05-14-2005 , 09:54 AM



To clarify!

If using Textcopy imports/exports files correctly then it implies something
wrong in your code, not that you should change your code to use the textcopy
source.

John

"John Bell" <jbellnewsposts (AT) hotmail (DOT) com> wrote

Quote:
Hi

You don't say how you are importing/exporting these, but you may want to
look at the textcopy sample.
If you don't need to hold them in the database it would be easier to just
store the file location information.

John
"Arlyn" <Arlyn (AT) ideapoint (DOT) ca> wrote in message
news:1189j851kjjnm5e (AT) corp (DOT) supernews.com...
I am using an image datatype to store multiple filetypes includeing plain
text data. it works except for pdf Data. When I retrieve the the file
couldn't be opened in acrobat reader and the file was 3KB bigger than the
original.
Any suggestions would be helpful.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.