New topic: Display PDF's files from database
<http://forums.realsoftware.com/viewtopic.php?t=47565> Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message dhernandez Post subject: Display PDF's files from databasePosted: Thu Apr 11, 2013 9:55 am Joined: Tue Apr 09, 2013 3:09 pm Posts: 2 Good morning, I am new to this forum and still no expert Real Studio. Who can help me with this, I'm trying to view PDF files from Oracle. The field BLOB store. I can find the object, since the list box does not give me the name of the stored documents. Greetings ... Top simulanics Post subject: Re: Display PDF's files from databasePosted: Thu Apr 11, 2013 2:20 pm Joined: Sun Aug 12, 2007 10:10 am Posts: 1041 Location: Boiling Springs, SC dhernandez wrote:Good morning, I am new to this forum and still no expert Real Studio. Who can help me with this, I'm trying to view PDF files from Oracle. The field BLOB store. I can find the object, since the list box does not give me the name of the stored documents. Greetings ... Write the blob data to file and use folderitem.launch (setting the folderitem to the path of the temporary pdf file)...you will have to create a name for the pdf if that information is not stored in the database... ex.... write the pdf blob to SpecialFolder.ApplicationData.Child("tempname.pdf") (or somewhere else) then SpecialFolder.ApplicationData.Child("tempname.pdf").launch to open it. this would be the most simplistic method. _________________ Matthew A. Combatti Real Studio 2012 r1.2 Visit Real Studio Developer's Spot! Systems I Use: Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/ Windows Server 2011/CentOS 5.4 /ReactOS/SimOS ~All REAL Compatible~ Top dhernandez Post subject: Re: Display PDF's files from databasePosted: Thu Apr 11, 2013 5:22 pm Joined: Tue Apr 09, 2013 3:09 pm Posts: 2 Thanks for answering. But to display the PDF file, I show a WebImageView? Or open the PDF reader installed on my system ... I will do as you comment and I will report the results. Good day. Top simulanics Post subject: Re: Display PDF's files from databasePosted: Thu Apr 11, 2013 6:36 pm Joined: Sun Aug 12, 2007 10:10 am Posts: 1041 Location: Boiling Springs, SC dhernandez wrote:Thanks for answering. But to display the PDF file, I show a WebImageView? Or open the PDF reader installed on my system ... I will do as you comment and I will report the results. Good day. using the command .Launch will load the pdf in the default system reader...webimageview is a web edition class which is the web equivalent of an ImageView (desktop apps)...Neither of which will help you at all... to save the blob... 'load the blob into a string using the blob.stringvalue. To save it.... Dim SavetheFile as new TextOutputStream SavetheFile = TextOutputStream.Open(folderitemdeclaredTMPPDF) ' replace with the actual FolderItem Savethefile.Write theStringValueofTheBlob SavetheFile.Close 'now lets open the PDF.... folderitemdeclaredTMPPDF.Launch 'as before, replace the first part with the actual folderitem of the PDF file above _________________ Matthew A. Combatti Real Studio 2012 r1.2 Visit Real Studio Developer's Spot! Systems I Use: Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/ Windows Server 2011/CentOS 5.4 /ReactOS/SimOS ~All REAL Compatible~ Top timhare Post subject: Re: Display PDF's files from databasePosted: Thu Apr 11, 2013 6:59 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 12224 Location: Portland, OR USA Is it a web app or a desktop app? The answer will be different for each. Top simulanics Post subject: Re: Display PDF's files from databasePosted: Thu Apr 11, 2013 9:21 pm Joined: Sun Aug 12, 2007 10:10 am Posts: 1041 Location: Boiling Springs, SC timhare wrote:Is it a web app or a desktop app? The answer will be different for each. I was going to ask the same thing but noticed it was in the windows section so assumed it was a desktop app _________________ Matthew A. Combatti Real Studio 2012 r1.2 Visit Real Studio Developer's Spot! Systems I Use: Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/ Windows Server 2011/CentOS 5.4 /ReactOS/SimOS ~All REAL Compatible~ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 6 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
