473,513 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Storing and Retrieving of PDF

1 New Member
Hi All,

Could anyone help me out with storing PDFs into Oracle DB and then retrieving and displaying it back in the browser.

Thanks in Advance,
Gitesh
Aug 9 '06 #1
2 5104
PLA
44 New Member
I don't think that storing PDF in the database is a good solution, instead store them in the file system and just store the path to it in the database...
If you really want to store PDF in the database you should use a BLOB (long binary i think in Oracle) column.

Pascal
Aug 23 '06 #2
sashi
1,754 Recognized Expert Top Contributor
Hi Gitesh,

What is blob?
A BLOB (Binary Large Object) is an Oracle datatype that can hold up to 4 GB of data. Also see CLOB. BLOB's are handy for storing digitized information (eg, images, audio, video)

As said above, storing PDF in the database is not a good programming practise. It makes your database size to grow, often corrupts the stored contents in the event of slow connection.

Anyway, you might have your own reason to store PDF in the database, kindly refer to below attached links for further reading. Good luck and take care my fren.. :)

http://java.sun.com/j2se/1.4.2/docs/.../sql/Blob.html
http://javaalmanac.com/egs/java.sql/GetBlob.html
Aug 27 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1892
by: Ankur Gupta | last post by:
I want to creating an application where all my php(with html) is stored in the database. So my index.php would find the appropriate the php file associated with the index page. It should execute...
3
3027
by: Mark | last post by:
I have a website with an increasing amount of articles and news reports and so I am thinking of moving away from storing each article as a seperate page to having a single page and storing articles...
2
1934
by: Tom | last post by:
Hi, I'm designing a website that will use XML to store all the content of my web pages. I will use a PHP script to parse the XML. Should I store the XML in a MySQL database or should I simply...
5
2124
by: Don Vaillancourt | last post by:
I'm building a system when one can upload a document to the website. I will be storing the document on the hard-drive for quick/easy access, but I was also thinking of storing it in an existing...
0
1229
by: kid4rilla | last post by:
I can successfully write the binary data to an image data type, and successfully retrieve it, but when I attempt to play the file in media player after retrieving it, I get the file type isn't...
6
5837
by: yasodhai | last post by:
Hi, I used a dropdown control which is binded to a datagrid control. I passed the values to the dropdownlist from the database using a function as follows in the aspx itself. <asp:DropDownList...
3
2030
by: RSH | last post by:
Hi, I have a situation where I have created an object that contains fields,properties and functions. After creating the object I attempted to assign it to a session variable so i could retrieve...
1
1643
by: ashishdubey | last post by:
Hi folks I am newbie in this mail api arena.what i am trying to do is storing and retrieving the messages in the database.but whenever i get the message from database and try to preview it(A...
2
1331
by: pavanip | last post by:
Hi, I am developing one application in that i have to develop inbox and outbox functionality. I have to display message like the following format "Dear member, This is a notice to let...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.