To see the content of a BLOB column from sqlplus
Hi,
I have a table which has a BLOB column.
The blobs are text files.
Is there a way to check the content of blob column from sqlplus itself.
Thanks.
There's no information about versin of database
If you're using 11g, then refer to this link:
http://dbathoughts.blogspot.com/2008/05/blob-support-in-sqlplus.html
If you're using 10g, then refer to this link
http://www.experts-exchange.com/Database/Oracle/Q_20419597.html
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
Similar Messages
-
How to display the content of a BLOB column in a ADF/BC pages ?
How to display the content of a BLOB column in a ADF/BC pages ?
There is some image in database table blog column. And we want to display image on the screeen.
There is some example about upload and dowload blog columns.
(steve not yet document example page etc...)
But We want to display blog picture in a image component...
is there any basic way to do it ?
Thanks a lot...Ali,
You could just download the sample app... but... here is the servlet code from the demo (look at it just for technique - you'll obviously have to change it for your needs)...
John
package oracle.fodemo.storefront.servlet;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.servlet.*;
import javax.servlet.http.*;
import oracle.jbo.ApplicationModule;
import oracle.jbo.Key;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
import oracle.jbo.client.Configuration;
import oracle.jbo.domain.BlobDomain;
import oracle.jbo.domain.DBSequence;
import oracle.jbo.domain.Number;
import oracle.jbo.server.ViewObjectImpl;
public class ImageServlet
extends HttpServlet
private static final String CONTENT_TYPE =
"image/jpg; charset=windows-1252";
public void init(ServletConfig config)
throws ServletException
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
response.setContentType(CONTENT_TYPE);
response.setContentType(CONTENT_TYPE);
String detailProductId = request.getParameter("detail");
String thumbnailProductId = request.getParameter("thumbnail");
boolean thumbnail = true;
String productId = null;
OutputStream os = response.getOutputStream();
String amDef = "oracle.fodemo.storefront.store.service.StoreServiceAM";
String config = "StoreServiceAMLocal";
ApplicationModule am =
Configuration.createRootApplicationModule(amDef, config);
ViewObjectImpl vo =
(ViewObjectImpl) am.findViewObject("ProductImages"); // get view object (the same as used in the table)
if (detailProductId != null)
productId = detailProductId;
thumbnail = false;
else
productId = thumbnailProductId;
vo.defineNamedWhereClauseParam("paramThumbnail", null, null);
vo.defineNamedWhereClauseParam("paramProductId", null, null);
vo.setWhereClause("DEFAULT_VIEW_FLAG = :paramThumbnail AND PRODUCT_ID = :paramProductId");
vo.setNamedWhereClauseParam("paramThumbnail", (thumbnail? "Y": "N"));
vo.setNamedWhereClauseParam("paramProductId", productId);
vo.executeQuery();
Row product = vo.first();
BlobDomain image = (BlobDomain) product.getAttribute("Image");
InputStream is = image.getInputStream();
// copy blob to output
byte[] buffer = new byte[10 * 1024];
int nread;
while ((nread = is.read(buffer)) != -1)
os.write(buffer, 0, nread);
os.close();
vo.setWhereClause(null);
vo.removeNamedWhereClauseParam("paramProductId");
vo.removeNamedWhereClauseParam("paramThumbnail");
Configuration.releaseRootApplicationModule(am, false);
} -
How To Print the contents of a BLOB Column on a report?(Word Document)
Requirement: The word document will be inserted in a BLOB Column and the data in the word document has to be shown on the reports or the user should be able to see the word document (atleast he should be able to view the contents)?
The data is getting loaded in the database but not sure how to proceed further.
Any inputs on how to proceed will be appreciated.
Thanks.in JComponent there is a method called print(Graphics g)
you can use that with a Printable class
read bout the java.print package in the java doc -
How to display the content of a BLOB column in a JSP page?
Hi,
I've a db table with a Blob column which contains an image (".gif" file). I've created a UIX JSP page with the wizard, but I cannot display my image.
This is my code:
<%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
<%-- Define Application Module and DataSource--%>
<jbo:ApplicationModule configname="PackageTest.PackageTestModule.PackageTestModuleLocal" id="app1" />
<jbo:DataSource id="ds1" appid="app1" viewobject="ProvaMediaView" rangesize="1" />
<%-- Main page contents go here --%>
<uix:contents>
<uix:form name="form1" method="POST">
<uix:labeledFieldLayout >
<jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
<%if(dsAttributes.getName().compareTo("Image")==0){
%>
<bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<jbo:EmbedImage datasource="ds1" mediaattr="Image" />
<%}else{%>
<bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<bc4juix:InputRender datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<%}%>
</jbo:AttributeIterate>
</uix:labeledFieldLayout>
<uix:formValue name="RowKey" value="<%= sRowKey%>" />
</uix:form>
</uix:contents>
and this is the error on running the page:
oracle.jbo.domain.BlobDomain
Exception Details
javax.servlet.jsp.JspException: oracle.jbo.domain.BlobDomain
int oracle.ord.html.jsp.datatags.ShowEmbedImageTag.doStartTag()
void Media_Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
How can I do?
Thanks in advance.Hi,
I've a db table with a Blob column which contains an image (".gif" file). I've created a UIX JSP page with the wizard, but I cannot display my image.
This is my code:
<%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
<%-- Define Application Module and DataSource--%>
<jbo:ApplicationModule configname="PackageTest.PackageTestModule.PackageTestModuleLocal" id="app1" />
<jbo:DataSource id="ds1" appid="app1" viewobject="ProvaMediaView" rangesize="1" />
<%-- Main page contents go here --%>
<uix:contents>
<uix:form name="form1" method="POST">
<uix:labeledFieldLayout >
<jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
<%if(dsAttributes.getName().compareTo("Image")==0){
%>
<bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<jbo:EmbedImage datasource="ds1" mediaattr="Image" />
<%}else{%>
<bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<bc4juix:InputRender datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<%}%>
</jbo:AttributeIterate>
</uix:labeledFieldLayout>
<uix:formValue name="RowKey" value="<%= sRowKey%>" />
</uix:form>
</uix:contents>
and this is the error on running the page:
oracle.jbo.domain.BlobDomain
Exception Details
javax.servlet.jsp.JspException: oracle.jbo.domain.BlobDomain
int oracle.ord.html.jsp.datatags.ShowEmbedImageTag.doStartTag()
void Media_Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
How can I do?
Thanks in advance. -
Rendering the content of a blob from discoverer
Hi Gurus,
I've got to render, on the web browser, the contents of a blob stored in a table. I don't know, at design time, the type/mime of the blob's content, It's actually stored aside the blob in another column of the same table.
It could be sufficent, for me, presenting a link and asking the user to click on it.
What's the way I can realize this?
Thanks in advance
Norberto
PS: My skill is mainly on forms/reports... I'm not an ace in Discoverer technology...Hi,
You have got 2 options here. You can create a data item for each mime type and have a column for each mime type in the report. Each row would have a link in one of the columns. You will have to create a view or custom folder over your blob table with additional columns for each mime type, for example to create an extra column for Excel:
SELECT ...,
CASE WHEN mime_type = 'application/vnd.ms-excel' THEN blob_content END blob_exel
FROM blob_table
Then set the content_type in the properties of the folder to be XLS for blob_excel column. The user would then have to click on the column which had been populated with the link.
The other option is to write your own mod_plsql procedure to download the blob. It is quite simple, you need to call owa_util.mime_header to set the mime type and wpg_docload.download_file to download the blob. You then create a hyperlink to your mod_plsql procedure.
Hope that helps,
Rod West -
Would Like to Get Report of Daily Emails In and Out from Members to a DL
Exchange version : 2007
I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity
is it possible ?Well, distribution groups don't really have a concept of "in" or "out". They only serve to distribute messages sent to them -- unless you're asking to know who was a member of the distribution group at the time a message was sent to the DL.
Message tracking logs hold the information you want, though. You'd have to look for EXPAND events that reference the distribution group and take the sender's e-mail address from that event. If the DL is a simple one that's not a member of any other groups
you could also look for RECEIVE events sent to the e-mail address of the group and get the sender's name from that event.
You can use Powershell extract the rows of data from the logs, but you'll have to write the code to get the data out of those rows and into a format you want. Perhaps LogParser could be useful in place of Powershell?
--- Rich Matheisen MCSE&I, Exchange MVP -
Can you print the contents of a blob in Bi Publisher
For example, Bi Publisher generate a pdf file in apex that will print the contents of a blob.
Let's say you have a record with test.xls in a blob, can I take the test.xls out of the record and have bi publisher print it.
Thanks,
DougBI Publisher can add some blobs to a report, such as a .jpg / .gif / .png, but excel just doesn't make sense, nor do I think it would work.
Tyler Muth
http://tylermuth.wordpress.com
"Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book -
Bought new TimeCapsule March 2013. Worked fine. Now get "No configured AirPort base stations have been found." I can see the content of the TimeCapsule's drive in finder and Time Machine but it no longer is making backups. Ideas?
Make sure that you have AirPort Utility 6.3.1 installed on your Mac.
AirPort Utility 6.3.1 for Mac - Support - Apple
Then, power off the entire network...all devices...in any order that you want
Wait a minute, then start the modem first and let it run a full minute
Start the next device connected to the modem, which may be your Time Capsule and let it run a minute
Keep starting devices one at a time the same way until the entire network is back up
See if AirPort Utility can "see" the Time Capsule now.
If yes, try another backup. If you encounter an error message, post back with the exact message. -
I dropped my ipad and I can no longer see the contents but they're there on itune
My iPad two was dropped - not hard only from a low table to the floor and it was in a leather case - now I can no longer see the contents on the iPad. I can see the contents in Itune but no display on my pad. Please help!
Try resetting the device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the reset is complete the "Slide to Unlock" screen will display.
Cheers,
GB -
When I click on a link from a web page opened in Safari I get a blank black screen. Why can't I see the contents of the page?
Is this any link in any page, or one particular link in a particular page?
-
Restrict user to see the contents of a transparent table
Hi fnds,
i want to restrict users in seeing the contents of a database table..
ithat is, when they go to se16 and hit enter.. and try to execute F8 button.. it should not show any records and no access should be available to that user...
Can this be possible with auth object - whoever is authorizeed they only shoud see the contents..
how to do this.. this table doenst not have table maintanence -- no SM30 data maintancne..
help me,
thanks
NirajaThis is part of the table definition in the data dictionary (not sure with what release that was introduced, but if you're not on an old system you should probably have it). I.e. in the data dictionary (SE11) on the Delivery and Maintenance tab for the table you have a field Data Browser/Table View Main., which you should set to N Display/Maintenance not allowed. If you check the F1 help on the field you'll get a nice long explanation.
If you don't have this option (on an old release) check out OSS note [26909 - SE16 - Security|https://service.sap.com/sap/support/notes/26909], which explains your other option via authorization object S_TABU_DIS (access control might be a bit too coarse). See also OSS note [546797 - FAQ Data Browser (SE16)|https://service.sap.com/sap/support/notes/546797].
Cheers, harald -
When i am in Yahoo mail and am opening on an email to open, the email starts to open (I can see the content of the email for a second) and then I get a screen with a message that states 'Whoops! The page could not be found. Try giving it another chance below'. But the email had been there so I don't understand that is happening. This just stated happening about a week or two ago. There is a search bar in the center of the screen and at the bottom of the error page is the following.
Contact us | Why did I get this page?
© 2012 ConduitMake sure that you access the Yahoo mail page via the Yahoo home page and not via a bookmarked link to a specific page.<br />
The latter may include POST or GET data that is no longer valid.
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
You can also check for issues caused by extensions.
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Not able to see the content of opened files (.jpg or .psd) in Photoshop CS6
I recently downloaded Adobe Design and Web Premium CS6. I am not able to see the content of any of the file I open (.psd or .jpg). I do see the file has been opened as the file name appears on the open file tabs, I also see the preview of the file in the Navigator Window and list of layers in the layers window. I am relatively new to this so might be missing on some option that needs to be turned on or something.
I am using Window 7 Professional, Service Pack 1, with 8GB RAM.
Any suggesstion/help is greatly appreciated.This is going to be the weak point:
Intel(R) HD Graphics card
While the Intel HD chip is fine for general computer work, it is weak for programs, like Photoshop and Adobe Premiere. The driver support is usually very bad, as well. If Lenovo does not have updated drivers, that work better, about the only choice that one has with a laptop is to turn OFF graphics accleration, and wait for a new driver. That will probably be very slow in coming.
Good luck,
Hunt
PS - Noel's link will list what you are missing. -
Everytime I use IE, first I have to click on the IE bar to allow blocked contect to display. What is the content that is being blocked from IE? viewers may not know what the problem is and see my site totally out of format.
discoveriweb wrote:
This is iweb development where after publishing, things look different in IE than other browsers. U r correct that this is due to IE software but is iWeb related. After all, one uses iweb not to just publish in Safari but for all browsers.
Which means that you are only considering half of the problem, but that's your choice.
I'm out. -
I just reset my apple ID password and now all the imap folders in Apple Mail are greyed out. I can see the contents, but I don't get whay the folders are all greyed out. Can anyone help? Sorry for the long title on this message...
Assuming this is an iCloud mail account, sign out of iCloud in its preference pane, then sign back in with the new password.
Maybe you are looking for
-
Upgrade to PT 8.51 - Crystal Reports 2008 is defaulting to old PT version
Hi Folks: As part of upgrading to Peopletools 8.51, a developer is making sure Crystal Reports 2008 works on his workstation. The install when smoothly where a custom or delivered report can be opened. However, with the report open - choosing menu op
-
XSD parser change from XI 3.0 to 7.1 ?
Hello, we upgraded 3.0 to 7.1 EHP1 and noticed an ugly problem: it seems that in XI 3.0 (until at least SP21) the XSD parser used a default value 0 when minOccurs is missing in the XSD. Contrary, in PI 7.1, it uses a default value of 1 (which is cons
-
We just bought a 47'' LG LCD TV and have noticed that sometimes there will be almost a blur around a person moving fast across the screen. Does anyone know if this is a tv issue or a cable company issue? Thanks
-
Sharepoint 2010 - how to move content database when RBS (remote blob storage) is enabled
Good day. I have two Sharepoint Server 2010 instances - test and production. i've turned on RBS(remote blob storage) on test. In future i want to copy content database from prod to test. What should i do, if RBS is not enabled on production? And seco
-
I got an error cannot Find url when i attempt to play my camera recorded video from my iphone 4S 32 gig. I try to restart my phone but still no luck. There was no problem previously, but suddenly i got this problem with no reason. I also unable to co