Solved

Save & Retrieve Tiff image from blob object to sqlserver using powerbuilder 8.0

Posted on 2003-11-08
4
10,596 Views
Last Modified: 2013-12-26
Hi,

I have Tiff image files i want to store it as blob object to sql server 2000 using power builder 8.0. The Tiff image should be displayed on the screen.
Can anyone help me how to do this?
Please provide me some code and method to do this.

Thanking you in advance,

Imtiyaz
0
Comment
Question by:wellwisher888
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Accepted Solution

by:
Vikas_Dixit earned 20 total points
ID: 9710882
Hi imtiaz,

u can create the OLE presentation stype datawindow to achieve the same. On the Inser Control screen ( while creating new datawindow, you will need to give the name of the OCX, that you want to display the tiff file with.

Regards,
Vikas
0
 
LVL 8

Assisted Solution

by:gajender_99
gajender_99 earned 20 total points
ID: 9714467
Hi Imtiyaz
I believe here is the solution for you problem.

1.Create a a Column in your table that have a data type of (BLOB/OLE OBJECT/Binary/TextLargeObject)

After the table has been created specify a SQL or quick select and select a presentation style for your new data window object.
In you select list specify the key columns for the table, but don’t select the BLOB column as a part of data source.

To add the BLOB column to your datawindow object click the “OLE Database Blob” from Insert  Controls. Click the datawindow where you want to place the blob object. This opens the database binary/text large object dialog box.

You can change the Client Name to  what ever you want.

Scroll through the list of tables  containing the Blob Column and click the table name.
The Large Binary/Text Columns List box displays all the columns from the selected table, now select the Blob column.

In the key clause type the id column for the table i.e id or emp_id.

You can leave the file template blank.

Now select the ole class by which you want to view the File

You can type a client name or use a computed text to give a name in client name expression.

. when your are running the window (I mean to say retrieved the data) you can double click on the blob column this bring the object which is associated with the blob object you can select a file  and close it .

this works fine in Powerbuilder 7 and it should work fine in 8 also if you get any error message just let me know I can provide a working example for this blob thing

thanks

Gajender
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question