Unix Technical Forum

Storing pdfs in an image field

This is a discussion on Storing pdfs in an image field within the SQL Server forums, part of the Microsoft SQL Server category; --> I am using an image datatype to store multiple filetypes includeing plain text data. it works except for pdf ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 07:28 AM
Arlyn
 
Posts: n/a
Default Storing pdfs in an image field

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 07:28 AM
John Bell
 
Posts: n/a
Default Re: Storing pdfs in an image field

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@ideapoint.ca> wrote in message
news:1189j851kjjnm5e@corp.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.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 07:28 AM
Erland Sommarskog
 
Posts: n/a
Default Re: Storing pdfs in an image field

John Bell (jbellnewsposts@hotmail.com) writes:
> 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.

> "Arlyn" <Arlyn@ideapoint.ca> wrote in message
> news:1189j851kjjnm5e@corp.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@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 07:29 AM
John Bell
 
Posts: n/a
Default Re: Storing pdfs in an image field

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@hotmail.com> wrote in message
news:4285a679$0$2590$da0feed9@news.zen.co.uk...
> 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@ideapoint.ca> wrote in message
> news:1189j851kjjnm5e@corp.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.
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com