Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How to send data to a server using Post method and without using BLOB data type

How to send data to a server using Post method and without using BLOB data type

How to send data to a server using Post method and without using BLOB data type

Please consider the below information:
  • I am working in Powerbuilder technology.
  • An OLE web browser object is defined in a window of the Powerbuilder.
  • Expected scenerio: Data from the Powerbuilder window will be passed to the server where the data will be parsed and a report will be generated which will be viewed in the OLE object in the powerbuilder window.
Steps taken:

  • While sending data from the Powerbuilder window to the server, I do not want to append the data in the URL and send it to the Server. Therefore, I cannot use the Get method and so have tried with Post method.
  • Used powerbuilder's PostURL method to send the data to the server.

  • Below is an example:


Int li_return
String ls_url1, ls_url2
Blob lb_blob
Long ll_bloblen

n_internetresult lu_data

If GetContextService("Internet", iinet_base) = 1 Then
ls_url1 = "http:// ip-address-of-the-server:port no./xxx?"
ls_url2 = "here the data, that will be passed to the server, are stored"
//*the data are converted into blob data*
lb_blob = blob(ls_url2)
ll_bloblen = len(lb_blob)
ls_header = "Content-Type: " + "application/x-www-form-urlencoded~nContent-Length: " + string(ll_bloblen) + "~n~n"
li_return = iinet_base.PostURL(ls_url1, lb_blob, ls_header, 8080, lu_data)
End if 
The above code is working fine. We can send data to the server successfully.

  • The data is converted to Blob and sent to the server. In the server side, its getting difficult to convert the blob data to the data that we were passing from the Powerbuilder window. In the server side, the language used is java.
  • So is there any way to send the data via post method without converting the arguments to blob data type in powerbuilder?
  • Powerbuilder version used: PowerBuilder Classic 12.5

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close