Loading images from the client side into ORDImage
Hi all,
I want to load images, located on the client computer, into an image-column in an Oracle 8.1.7 database.
Directly writing the image.source.localedata (via writing to the blob, received by image.getcontent() method) works, but I can not set the image properties like width, height,.. , sourcefilename,...
Regards Oliver
I need a little more information. What does "not work" mean?
Could you post your code? And what error message you are getting?
I will make a wild assumption that is most certainly wrong and assume that you are trying to set fields in the ordimage object with a SQL insert statement.
If you want to set a field in an object directly, you MUST include the schema name in the insert statement using dot notation. If you do not, SQL does not know if you are refering to an object with the dot notation, or a schema name. SQL always assumes a schema name in this case.
So, to set a field in a object requires an insert statement like:
insert into my_schema.my_table.my_image_column.width values (300);
Similar Messages
-
RUN form FMX from the client side
Hii
I have installed oracle forms developer 10g, i have designed simple form and i run it from the local mechine it worked, and i want to try to connect it from the client side, it didn't work
Can you help on this pleaseNo you don't need to have an iAS to test this
Start your OC4J instance on your host
copy the file default.env to test.env (located in <oracle_home>/forms/server)
in test.env modify your forms_path to the pathe where your form is residing.
modify your formsweb.cfg file (located in <oracle_home>/forms/server)
add a named config at the end of the file (copy the example and modify to your needs)
looking like
[test]
envfile=test.env
form=test.fmx
userid=.../..@... (or you can leave this out and then you get an authentication pop up)
leave the other stuff default
now call on your other client
htpp://<your machine where oc4j is running>:8889/forms/frmservlet?config=test
if you still have troubles with your fields check wheter you have other java clients installed (I experienced also problems when other JVM's were installed with certain Jinitiator)
If so you can bypass this by making JRE the standard instead of Jinitiator
put in your named config
IE=native
and change
baseHTMLjinitiator=webutiljinit.htm
baseHTMLie=webutiljpi.htm
into
baseHTMLjinitiator=webutiljpi.htm
baseHTMLie=webutiljpi.htm
Now you will load sun's JRE instead of Jinit
Hope this helps
Erwin -
How can i lookup a session bean from the client side
how can i lookup a session bean from the client side...........i am using sun appserver..............
this is my code.................[B]
private final static String JNDI_NAME="ejb/LmsBean";
private static String url="ldap://localhost:4848";
Hashtable h=new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
h.put(Context.PROVIDER_URL,url);
System.out.println("Before Loading Context in Delegate");
Context ctx=new InitialContext(h);
System.out.println("Loaded Context in Delegate");
Object obj=ctx.lookup(JNDI_NAME);
System.out.println("Loaded Object in Delegate");
System.out.println("Before Loading Home in Delegate");
LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
System.out.println("Loaded Home in Delegate");
lms = home.create();
System.out.println("Loaded remote in Delegate");
[B]and i got the exception........
Inside Client before calling delegate
Before Loading Context in Delegate
javax.naming.CommunicationException: Request: 1 cancelled
javax.naming.CommunicationException: Request: 1 cancelled
at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:171)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.parx.lms.lmsdelegate.LmsDelegate.getController(LmsDelegate.java:3
0)
at com.parx.lms.lmsdelegate.LmsDelegate.addUserDelegate(LmsDelegate.java
:50)
at com.parx.lms.client.consoleClient.Client.main(Unknown Source)
pls go tru the exception and pls help.........That url string should be having the server name or ip instead of localhost.
-
Fetching a partial range of selected result rows from the client side
It has been a while since I started trying to solve this Oracle puzzle.
Basically, what I need it is a way to fetch from the client side a run-time
defined range of result rows of a arbitrary SELECT query.
In low-end databases like MySQL I can do it simply by appending the LIMIT
argument to the end of the SELECT query statment passing the number of
the first row that I want to be returned from the server from the total
result rows available in the result set and the maximum number of rows
that it may return if available.
In higher end databases I am supposed to use server side cursors to skip
any initial rows before the first that I want to retrieve and fetch only
the rows I want up to the given limit.
I am able to achieve this with PostgreSQL and Microsoft SQL server, but I
am having a hard time with Oracle. The main problem is how do I fetch
result rows from a server side cursor and have their data returned to a
client side in a result set like in a straight SELECT query?
I was able to create a cursor and fecth a row into a server side record
variable with the following PL/SQL code.
DECLARE
CURSOR c IS SELECT * FROM my_table;
my_row c%ROWTYPE;
BEGIN
OPEN c;
FETCH c INTO my_row;
CLOSE c;
END;
I want to do this from PHP, so I don't have client side ESQL variables to
store the result set data structure. Anyway, if I can do it just with
SQLPlus I should be able to do it in PHP.
If I do straight SELECT I can get the result set, but in a PL/SQL script
like the one above I don't seem to be able to select the data in the
fetched row record to have returned to the client. Does a straight SELECT
query sends the result rows to a default client side variable?
If anybody can help, I would appreciate if you could mail me at
[email protected] because I am not able to access this forum all the time in
the Web. BTW, is it possible to access this forum by e-mail?
Thanks in advance,
Manuel Lemos
nullHello Jason,
On 03-Feb-00 05:34:14, you wrote:
I'm not sure I totally understand your problem, but I think you might be able
to solve it by using the ROWNUM variable. ROWNUM returns the sequenc number
in which a row was returned when first selected from a table. The first row
has ROWNUM = 1, the second has ROWNUM = 2, etc. Just remember that the
ROWNUM is assigned as soon as it's selected, even before an order by. So if
you have an order by clause, it'll mess it up. Here's an example. I hope
that helps.I though of that before but it doesn't help because if you use ORDER BY the
first result row might not have ROWNUM=1 and so on. Another issue is that
I want to be able to skip a given number of result rows before returning
anything to the client.
The only way I see to do it is to get the rows with server side cursor.
But how do I return them to the client? Where does a normal select returns
the rows? Isn't there a way to specify that the fetch or something else
return the rows there?
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=[email protected]
E-mail: [email protected]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
null -
How to Get the excel sheet formula from the server side into the j2me app?
How to Get the excel sheet formula from the server side into the j2me application?
Here the excel sheet is in server side.i want to do get the excel sheet values (only some part of the excel sheet based on some conditions) from server side into j2me.In j2me I want to done some client side validation based on the formula of excel sheet.Then i resend the new updated data to the server.
But here deosn't know any mehtod to get the excel sheet formula from server side.So kindly help me to get the excel sheet formula from the server.
So how to get the excel sheet formula frome the server side into j2me Application...
Plz guide me to solve this issue...
thanks & regards, Sivakumar.JYou should not post a thread more than once. You've crossposted this question to another forum. I have deleted that one.
-
Hello Everyone,
We would like to implement a script to delete the offline files in the Client Side Cache (CSC) for a nominated user (on Windows 7 x64 enterprise).
I am aware that;
1. We can use a registry value to flush the entire CNC cache (for all users) next time the machine reboots.
2. If we delete the user's local profile it appears that Windows 7 also removes their content from the local CSC.
However, we would like to just delete the CSC content for a particular nominated user without having to delete their local user profile.
In our environment we have many users that share workstations but only use them occasionally. We don't use roaming profile so we would like to retain all the users' local profiles but still delete the CSC content for any users that haven't
logged on in a week.
Any ideas or info would be appreciated !
Thanks, MakesHi,
I don't think this is possible.
If you want to achieve it via script, I suggest you post it in official script forum for more professional help:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Karen Hu
TechNet Community Support -
How to use mathscript node in server side with the parameter from the client side
I tried to develop a server/client system with some algorithms written in matlab. So I included a mathscript node on the server side. The client will send the parameter to the server. According to these parameters, the sever will call the matlab functions to do some computings and then send the results back to the client. The server has to wait for all parameters received before the computings. How do I know this since I only connect the parameter variables to the inputs of mathscript node on the server. The sever cannot know whethere these parameters are the new ones or old ones since the client may send parameters multiple times?
It seems to me you have two perfectly good options to start with. You could send all possible parameters in a single packet from the client to the server. This could be in the form of a cluster or an array of values. If by server/client you mean you are sending data over the network, then you could flatten this data to string before sending and unflatten it on the other side. Since all parameters come in one packet, you know all the data is valid every time you send data.
The other option is to send the parameters individually, but include some extra information such as a timestamp or iteration count. The server keeps reading and storing parameter values until a packet arrives with the next timestamp. Alternatively, you could include some information such as an end-of-parameter-list boolean that is sent with every parameter. It would be false until the last parameter packet.
Give it a thought. There are lots of solutions.
Jarrod S.
National Instruments -
How to load images from the library (png)?
This is my first time using the forum so sorry if it's not professionally set up. I am trying to make an inventory system and I'm trying to find a way to have a Slot (MovieClip) holding a child of probably another MovieClip witch will display the icon according to whatever is in that Slot... As soon as I figure out how to have a MovieClip display an image and then change that image by loading it from the library, I can finish the rest! So let me try to demonstrate:
(Note: This is not actual code, it's just a demonstration of what I'm trying to accomplish)
Item1 = Name: "HP Potion", Icon: "HP_Potion.png"
Item2 = Name: "MP Potion", Icon: "MP_Potion.png"
Item3 = Name: "Sword", Icon: "Sword.png"
Item4 = Name: "Shield", Icon: "Shield.png"
Slot1.nameField.text = Item1.Name //HP Potion
Slot1.mc_img = Item1.Icon//HP_Potion.png
~Ok so what I am trying to do is see if there is a way to change what image the MovieClip displays, just by code. I don't want to put each individual picture in a frame on the MovieClip's timeline
Sorry about not having any code, I've been working on it for a few hours, and I can't find anything online that doesn't say put it in a timeline.
If you know how to do what I'm asking with a spritesheet instead of individual images, that's fine too! I'll just have to join all the images togetherAlright so let's get down to buisness... what I'm asking, is it impossible to make it simple? I can't just change the bitmap of the MovieClip. If you open up the MovieClip and view it's timeline, the image is a bitmap file withing that MovieClip so if you're able to manipulate other things of a MovieClip, you should be able to manipulate that too right? Such as "MovieClip.Bitmap" (I know that's not the actual property but could it be done?).
-
Flash CS 5 only supports SAVING to the camera roll, not loading image from it. And it has no access to the camera to take pictures and access the image within the app.
Does Flash CS 5.5 do these things? There's no point in upgrading if it doesn't support these core feature that I need.Hi.
Just got an app rejected because the popover to select the pics from the camera roll on the iPad always appears on to-left corner, and the arrow doesn't point anywere, and should be pointing to the button which activated it. That "does not comply with the Apple iOS Human Interface Guidelines, as required...". On the iPhone there's no issue because it takes over the whole screen. More from the apple rejection message:
"Specifically, we noticed your app contained popover elements that didn't point to the element that revealed them. To avoid user confusion, a popover element's arrow should point to the element that revealed it."
So, thanks for including the CameraRoll functionality, but it will be useless in the iPad apparently
Any workaround to make it appear at a specific place when calling myCameraRoll.browseForImage() ?
Fernando -
Is there any way for a basemap to be manipulated from the client side?
Hello,
Essentially, we have a basemap (+basemap A+) that contains boundary geography (i.e., county, tract, block boundaries) and we have a theme (+theme A+) that contains housing unit points.
The idea is that theme A will be a layer that the user will be able to switch on/off. We know how to do this, but the problem comes in where performance is concerned.
Previously, theme A was actually included in basemap A, and performance was not an issue, but the problem then was that the user was not able to turn that layer on/off.
Also I have done everything I know in terms of caching as well as using the mapviewer API
(e.g.,
test_theme.setClickable(false);
test_theme.enableInfoWindow(false);
test_theme.enableInfoTip(false);
test_theme.enableLabels(false);
test_theme.enableAutoWholeImage(true);
test_theme.setMinVisibleZoomLevel(5);),
but rendering the theme on the client side is still way too slow (even at zoom level 5).
So, my question boils down to this. Is there any way for a basemap to be manipulated by a user? I.e., Is there a way for a user to pass parameters to a basemap, essentially telling it which themes to turn on/off?
I know you can specify which zoom level the basemap's themes are visible, but again, we want the user to be able to have control of when a certain theme is shown or not.
Thank you for any help you can provide,
John
Edited by: user641525 on Mar 18, 2009 10:29 AM
Edited by: user641525 on Mar 18, 2009 10:30 AMWhat you may try is to replicate your base map but take the point theme out of its definition. Then create a second tile layer for the new base map. You can add both tile layers to the client (but set only one of them to be visible). Then simply switch the tile layers' visibility on/off based on user turning on/off the point theme. The built-in Oracle Maps tutorial #22 (Multiple Base maps) has some sample code you might be able to re-use.
thanks
LJ -
Error while loading image from Windows Phone gallery into my Unity application
Hi,
I have developped a Windows Phone plugin for my Unity application which enable me to open the Windows Phone gallery in order to select an image and get its physic path.
I've used this path to load the image in the application with a WWW object but I get this error
"Error. Operation has failed with error 0x80070005: access is denied."
The path is correct because I display it and I've ticked the ID_CAP_MEDIALIB_PHOTO in the WMAppManifest.xml (Capabilities tab).
Here is my Unity C# test code to load the image with the path.
IEnumerator loadImage()
this.guiText.text = filePath;
WWW www = new WWW(filePath);
yield return www;
if(www.error == null)
GameObject texture = GameObject.Find("UNITY");
if(texture != null)
texture.guiTexture.texture = www.texture;
Any help would be appreciated ! Thanks in advance !The error is correct. Your app doesn't have direct access to that path. It can directly load files only from its app data and install directories.
To load from the libraries I it needs to use the StorageFile to get brokered access.
The easiest way may be to copy from the library to local data then use WWW to load that. Otherwise you'll probably need to wrap the StorageFile can for use in unity. Unity has such a wrapper in the Unity Engine.WSA namespace that you can try -
Dragging a large still image from the browser into the viewer crashes FCP
Okay, I've not seen this problem until just a couple days ago but was wondering if it was just me or if everyone has this problem? I've found a work-around, but let me explain the problem first.
I'm creating a growing up photo montage. I scanned all of the pictures myself at 300 dpi (as I've always done in the past) and saved them as TIF files. Some pictures as relatively small, i.e. 3.5 mb is size and do just fine, but it appears anytime I drop a picture into the viewer in preparation for the the timeline, it will crash FCP if the image file is any larger than about 5 or 5.5 MB. Now I know there is a limit on the resolution of a still and it shouldn't be any larger than 4000 pixels in either direction, but that is not my problem, the problem appears to occur with large files. I've used large still files before in past projects without any problem, so this is why I'm stumped. I've went as far as trashing my preferences, but that didn't change anything. I've even tested a still image from a past project that was something around 9 MB (or was it 19 mb?) in any case, it also crashed FCP but... I've used that picture before in past projects without any problem. I even created a new test project just in case my project file itself had a problem.
My work-around is to simply drop the still image from the browser directly into the timeline, thus bypassing the viewer. This works every time without a hitch. I can even double-click on the still now setting in the timeline to load it into the viewer so I can add effects or keyframes or whatever without any problems (thank goodness). So, has anyone else experienced this problem or is it just me?Is this image saved in a colorspace mode that is anything other than RGB?
CMYK & Grayscale images will cause problems.
Some light reading regarding your choice of 300 dpi: http://www.scantips.com/no72dpi.html
Unless you plan on panning and zooming your images, the best procedure is to use one of the video preset templates in Photoshop and paste your content into it. Scale and position using the Transform controls. For best results save as a TIFF without compression. Don't forget, always in RGB colorspace. -
Hi,
I'm looking for some help on the below query to verify which version of sql server edition supports multiple or N number of sessions to the SQL server Instance using the SQL Server Management Studio tool from the client side.
SQL Standard Vs Enterprise.
your urgent help is much appreciated.
Br.Hello,
See Maximum Capacity Specifications for SQL Server =>
User connections = 32,767; and this value is independent of use SQL Server Version, edition or the used tools, like SSMS in your question
Olaf Helper
[ Blog] [ Xing] [ MVP] -
PJC - Loading Images from JAR Files
I'm developing a PJC class that involves loading images. I would like to be able to find and use an image contained in a JAR file just like the built-in Forms items do; not the JAR file where my class is contained but any external ones defined in the server archive settings.
I have seen the loadImage method in the demo RolloverButton class but this only loads images from the class's JAR and not any others.
Is there a VButton method or an Oracle loader class for finding image resources from the defined JAR archives? If not, could someone supply some code for achieving this.
Thank you.Hi,
the jar file name the images are in shouldn't matter for the code as long as the package name is preserved. If you want to see it with your own eyes, do the following
1. Back up demo90.jar
2. Create a copy of it and call it demo90img.jar
3. Open demo90.jar in winzip and remove all images
4. Open demo90img.jar and remove all Java classes
5. add ,/forms90demo/jars/demo90img.jar to the archive_jini tag of a demo you want to test this on
6. Run the application and see the images despite the fact they are now in a separate jar file. Note in the Jinitiator console that the new jar files are downloaded and replace the existing, cached, jars
7. Run an application that doesn't have demo90img.jar configured to see that the images are missing.
Frank -
Cannot copy and paste images from the web into Corel Draw
Attempting to copy and paste a jpg image from a client's website, for use in Corel Draw... Copy appears to work fine, and pasting into other programs like Windows Paint works, but paste to CorelDraw has no result.
I've seen where others would get the text URL but nothing happens when I hit paste.
Drag and drop imports the text name of the image.Since Firefox 13, when you copy an image, Firefox places both the image data (bitmap data) and the URL of the image on the clipboard. I can see why you would get one or the other, but I can't think of why you would get nothing.
Did this just start in Firefox 22?
Some odd interactions have been noted between Firefox 22 and ZoneAlarm: when ''copying'' selected text in Firefox, the clipboard may end up blank a significant percentage of the time . But it sounds as though you have a different issue.
Do you have the same issue in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
You can restart Firefox in Safe Mode using
Help > Restart with Add-ons Disabled
In the dialog, click "Start in Safe Mode" (''not'' Reset)
Any difference?
Maybe you are looking for
-
Nokia C5-03/Win7 Bluetooth connectivity problem
When I am trying to connect Nokia Ovi Suite to my phone using Bluetooth, the pairing process seems to succeed, except the last phase: Then I receive a message that the connection did not succeed. The wizard gives then a possibility to try again with
-
Upgrade Help... is my install disk good?
Hi all... may your 2007 unfold as you prefer... I bought Tiger and was testing out how it would run, on a cloned B/U firewire drive, before installation on my main drive... I ran into install problems and after 2 failed attempts on the external drive
-
Ipod cannot be used because the Apple Mobile Device Service is not Started
Just received my Ipod touch this morning, PC recognises device and says that is is ready to use (however then it is not recognised in my computer) and upon start up of i tunes the following message is displayed. +This ipod cannot be used because the
-
Get Row reference in advanced table to set the value of custom column
Hi, I have a requirement to add a new column PHP Amount in Manage Charge page which is a entry page where all the charges are entered for a PO. This region is based on Advanced table. As per requirement, Newly created column should populate the value
-
Outgoing email address shows correct BUT sends with wrong one.
I have seen a couple other folks who describe this better. Good example is == if i am on a web page in safari and hit the little arrow to email the page to a friend. I type in their email address and NOTE THAT THE PROPER EMAIL, MY DEFAULT EMAIL IS S