I am storing an image using l_oid (postgresql). Now i want know convert l_oid to bytea and bytea to image in front end(vb.net)
[note: i dont want to use lo_import and lo_export because i need this in client server application]
can anybody having solution to solve this?
lo_read. If you're using nPgSQL you should read npgsql.projects.pgfoundry.org/docs/manual/UserManual.html and look at the "large objects" section. It's C# code but the example should give you an idea of how to do it in VB.net. The second example is about exactly what you want to do. If you're not using npgsql - say you're connected via ODBC or ADO - then it's going to be harder.