• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

pdf file stored as BLOB data type on Oracle

New Here ,
Dec 03, 2008 Dec 03, 2008

Copy link to clipboard

Copied

I store PDF file as BLOB data type on Oracle. There are cases where I get multiple records from the database, that means I get multiple PDF files. They have to be merged and displayed on the web page. I tried CFContent which can display only one PDF file at a time but not more than one, whereas cfdocument is having problem converting binary data to string. I am kind of stuck.

Can you anybody please help me out? Please let me know if you have any questions or this does not make sense to you.
Thank you in advance.
TOPICS
Database access

Views

4.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2008 Dec 03, 2008

Copy link to clipboard

Copied

BALAJI_JAY wrote:
> Can you anybody please help me out? Please let me know if you have any
> questions or this does not make sense to you.

if by "merge" you mean 3 pdf into 1 pdf, try cfpdf (if on cf8) or see this
thread if cf version less than 8:

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=7&threadid=1114635&mess...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 03, 2008 Dec 03, 2008

Copy link to clipboard

Copied

I have a select statement for BLOB column from the database - for example SELECT BLOB_DOC FROM DOCUMENTS WHERE DOC_SEQ_NO = (DOCNUMBER). This query returns 5 rows. Actually I get 5 BLOB records (each one of them is a PDF file). I wanted to combine the BLOB documents to display one big pdf file on the web page. I get the error of converting Binary data to string when I use cfdocument or cfpdf.
Can you please provide some suggestions? I use CF8. Thank you in advance.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 04, 2008 Dec 04, 2008

Copy link to clipboard

Copied

BALAJI_JAY wrote:
> Can you please provide some suggestions? I use CF8. Thank you in advance.

lets start simple, write out the BLOBs as pdf files (cffile) & see if those can
be merged.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 04, 2008 Dec 04, 2008

Copy link to clipboard

Copied

LATEST
Thanks it works fine. I did write using CFFILE and then I merged them using cfpdf. Finally, the merged file was passed on to cfcontent type="application/pdf" file="merged.pdf". Thanks again to your help and suggestion.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation