Rotating image loaded with CameraRoll
I'm having trouble working out how to rotate an image loaded using CameraRoll on an AIR for iOS app.
This code below works fine (displayImage() is called when CameraRolls media event returns completed, and imageArea is the scrollPane where the image is shown.
function displayImage():void
var image:Bitmap = Bitmap(imageLoader.content);
imageArea.source = image;
The image loads just fine untill I try to rotate it:
function readMediaData():void
var image:Bitmap = Bitmap(imageLoader.content);
var imX:int = image.width;
var imY:int = image.height;
if (imX>imY)
image.rotation = 90;
imageArea.source = image;
With the second version the image seems to load because the scroll bars expand to the size of the image I choose, but I don't see anything on the stage.
What am I doing wrong?
Any suggestions would be really appreciated.
I added the new width back to images x position but no joy; no matter what x & y I set the image to, it cannot be seen. The scroll bars expand exactly the right amount for the 'invisible' image, regardless of it's x & y positions as well (you'd think if the image was out of the scrollPane the bars wouldn't adjust like that. I'm not doing something right.
I'm stumped on this but I'll keep trying things. Thanks for your help and the lead, I appreciate it and it may be part of the problem, but there seems to be a different problem as well.
Similar Messages
-
Interface frozen with images loaded with Loader()
Hi all,
I am trying to create a web app that allows the user to load an image from a local folder and process it with some image processing. I was able to do that with FileReference and Loader.
I am using an asynchronous shader to process the image and it seems that when the image is loaded locally the interface is locked out for a second or so before showing the result. However, if the image is embedded this does not happen and the image is updated instantly with the result.
I don't really understand why an image loaded with a loader has this lag and an embadded image does not... Can anyone help?
Thanks.Everything was already done
100 fullduplex autoneg to false :
# for i in `ndd /dev/hme \? | grep "read and write" | awk '{print $1}' ` ; do
echo $
ndd /dev/hme ${i}
done
ipg1
8
ipg2
4
use_int_xcvr
0
pace_size
0
adv_autoneg_cap
0
adv_100T4_cap
0
adv_100fdx_cap
1
adv_100hdx_cap
0
adv_10fdx_cap
0
adv_10hdx_cap
0
instance
0
lance_mode
1
ipg0
16
$ netstat -k hme0
hme0:
ipackets 172970 ierrors 77 opackets 106192 oerrors 0 collisions 0
defer 0 framing 36 crc 41 sqe 0 code_violations 0 len_errors 0
ifspeed 100000000 buff 0 oflo 0 uflo 0 missed 0 tx_late_collisions 0
retry_error 0 first_collisions 0 nocarrier 0 nocanput 0
allocbfail 0 runt 0 jabber 0 babble 0 tmd_error 0 tx_late_error 0
rx_late_error 0 slv_parity_error 0 tx_parity_error 0 rx_parity_error 0
slv_error_ack 0 tx_error_ack 0 rx_error_ack 0 tx_tag_error 0
rx_tag_error 0 eop_error 0 no_tmds 0 no_tbufs 0 no_rbufs 0
rx_late_collisions 0 rbytes 199140046 obytes 6676272 multircv 231 multixmt 0
brdcstrcv 1057 brdcstxmt 42 norcvbuf 0 noxmtbuf 0 newfree 0
ipackets64 172970 opackets64 106192 rbytes64 199140046 obytes64 6676272 align_errors 36
fcs_errors 41 sqe_errors 0 defer_xmts 0 ex_collisions 0
macxmt_errors 0 carrier_errors 0 toolong_errors 0 macrcv_errors 0
link_duplex 0 inits 5 rxinits 0 txinits 0 dmarh_inits 0
dmaxh_inits 0 link_down_cnt 0 phy_failures 0 xcvr_vendor 24657
asic_rev 193 link_up 1
So what do you have any idea, about the problem?
The router is 100 Full Duplex w/o autoneg
the errors arrived only on the virtual interface hme0:1, and never on hme0
Fred, -
Rotate Image Created with createImage() ?
I've been looking around online for a way to do this, but so far the only things I have found are 50+ lines of code. Surely there is a simple way to rotate an image created with the createImage() function?
Here's some example code with all the tedious stuff already written. Can someone show me a simple way to rotate my image?
import java.net.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import javax.swing.*;
public class RotImg extends JApplet implements MouseListener {
URL base;
MediaTracker mt;
Image myimg;
public void init() {
try{ mt = new MediaTracker(this);
base = getCodeBase(); }
catch(Exception ex){}
myimg = getImage(base, "myimg.gif");
mt.addImage(myimg, 1);
try{ mt.waitForAll(); }
catch(Exception ex){}
this.addMouseListener(this);
public void paint(Graphics g){
super.paint(g);
Graphics2D g2 = (Graphics2D) g;
g2.drawImage(myimg, 20, 20, this);
public void mouseClicked(MouseEvent e){
//***** SOME CODE HERE *****//
// Rotate myimg by 5 degrees
//******** END CODE ********//
repaint();
public void mouseEntered(MouseEvent e){}
public void mouseExited(MouseEvent e){}
public void mousePressed(MouseEvent e){}
public void mouseReleased(MouseEvent e){}
}Thanks very much for your help!
null// <applet code="RotationApplet" width="400" height="400"></applet>
// use: >appletviewer RotationApplet.java
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import javax.swing.*;
public class RotationApplet extends JApplet {
RotationAppletPanel rotationPanel;
public void init() {
Image image = loadImage();
rotationPanel = new RotationAppletPanel(image);
setLayout(new BorderLayout());
getContentPane().add(rotationPanel);
private Image loadImage() {
String path = "images/cougar.jpg";
Image image = getImage(getCodeBase(), path);
MediaTracker mt = new MediaTracker(this);
mt.addImage(image, 0);
try {
mt.waitForID(0);
} catch(InterruptedException e) {
System.out.println("loading interrupted");
return image;
class RotationAppletPanel extends JPanel {
BufferedImage image;
double theta = 0;
final double thetaInc = Math.toRadians(5.0);
public RotationAppletPanel(Image img) {
image = convert(img);
addMouseListener(ml);
public void rotate() {
theta += thetaInc;
repaint();
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
double x = (getWidth() - image.getWidth())/2;
double y = (getHeight() - image.getHeight())/2;
AffineTransform at = AffineTransform.getTranslateInstance(x,y);
at.rotate(theta, image.getWidth()/2, image.getHeight()/2);
g2.drawRenderedImage(image, at);
private BufferedImage convert(Image src) {
int w = src.getWidth(this);
int h = src.getHeight(this);
int type = BufferedImage.TYPE_INT_RGB; // options
BufferedImage dest = new BufferedImage(w,h,type);
Graphics2D g2 = dest.createGraphics();
g2.drawImage(src,0,0,this);
g2.dispose();
return dest;
private MouseListener ml = new MouseAdapter() {
public void mousePressed(MouseEvent e) {
rotate();
} -
Applying filter to images loaded with movieClipLoader
Hello,
I am building a product gallery and have a number of rather
large bitmap images that I am loading with movieClipLoader. I need
to apply drop shadow filters to them when they are loaded. I have
tried several methods of going about this without success. One
method was putting the loaded images into a movie clip with
createEmptyMovieClip, and then applying the filter dynamically, but
I couldn't seem to get it to work- the filter never appeared. I
then tried applying the filter to the bitmap itself with
bitMapData, but because I was not loading the bitmaps using
bitMapData itself (I think) I wasn't able to get that method to
work either.
Does anyone have a suggestion or a recommendation for me?
Thanks very much for any advice.Were you doing it after the onLoadInit event in the
MovieClipLoader's listener?
Try doing it that way if you haven't. One option I use for
dynamic image loading is to create and empty holder clip - use that
for placement and create another empty clip inside that one that I
use as the loading target... I think this should work if you set
the filter at the level of the first 'empty' clip. I had to use
this approach a number of times because I was using a tweening
engine based on movieclip prototype extensions (old hat I know) and
loading new images kicked out the extended functionality from the
clip the images are loaded into. That doesn't happen to the clip's
parent... hence I think it might work also for what you want to do.
Another thing to watch for is that you can't do bitmapData
copies of images from a different domain unless you have
crossdomain policy support - you can set it up so this works. I'm
not sure if this affects filters though.
-GWD -
Image loaded with Loader doesn't render
I have created a web service that pulls images (gif,jpg) from
the database and base64 it for sending across the wire. The flex
application then decodes and renders the image. The Image is not
being scaled correctly. IT will not adhere to the dimensions of the
ImageBox but rather stays at the original fixed size. If I embed
the image into the application everything works correctly. But if
the image is decoded then sizing goes out the window.
The image overflows the Image box and takes up the full size
of the image. Zoom, rotation, etc. do nothing to the image.
Any help is appreciated...
Example Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="onLoad(event);">
<mx:Script>
<![CDATA[
import mx.utils.Base64Decoder;
public function onLoad(event:Event):void {
// Decode image - Base64 gif image (500 x 776)
var base64:String = "R0lGOD..."; // Get base64 from web
service call
var decoder:Base64Decoder = new Base64Decoder();
decoder.decode(base64);
// Load image into container
var loader:Loader = new Loader();
loader.loadBytes(decoder.flush());
image2.addChild(loader);
]]>
</mx:Script>
<mx:HBox id="mainBox">
<!-- Should render a 100 x 100 box but instead the image
is full size -->
<mx:Image id="image2" width="100" height="100" />
</mx:HBox>
</mx:Application>Hi Dmitri,
Thank you for the prompt reply, your question about the jpeg content was a helpful pointer.
I solved the problem, it had nothing to do with flex, it was all on the java side. The image was obtained from converting a TIFF to a JPEG, the conversion was failing and the flex loader was receiveing a tiff and it did not know how to display it.
The java problem was kind of interesting, I'll post it here as an FYI in case anybody cares :
On my server the first writer returned by ImageIO was an instance of JPEGImageWriter and on the other servers was CLibJPEGImageWriter. And it happens that only JPEGImageWrite can write the type of TIFF that we are having.
The fix was to iterate through all the writers and pick the instace of JPEGImageWrite, instead of the first one found.
Lumi -
I am loading a JPEG image from the server, using the Loader->loadBytes() and that works when the app is deployed under my local Tomcat server. When I deploy it on other servers the image is not displayed, instead of the image I see II*
On the server side I have java, Spring, BlazeDs and I use RemoteObject on the client.
The code that loads the image looks like below:
private function imageLoadResultHandler(event:ResultEvent):void {
var result:ArrayCollection = event.result as ArrayCollection
var bytes : ByteArray = result.getItemAt(0) as ByteArray;
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loaderFaultHandler);
_loader.loadBytes(bytes);
private function loaderCompleteHandler(event:Event):void {
var loaderInfo:LoaderInfo = event.currentTarget as LoaderInfo;
var img:Image = new Image();
img.source = loaderInfo.content;
myPanel.addChild(img);
<mx:RemoteObject id="ro" destination="imageLoadService">
<mx:method name="loadImage" result="imageLoadResultHandler(event)" fault="faultHandler(event)" />
</mx:RemoteObject>
Any help with this problem is much appreciated.
Thank you,
Lumi VelicanuHi Dmitri,
Thank you for the prompt reply, your question about the jpeg content was a helpful pointer.
I solved the problem, it had nothing to do with flex, it was all on the java side. The image was obtained from converting a TIFF to a JPEG, the conversion was failing and the flex loader was receiveing a tiff and it did not know how to display it.
The java problem was kind of interesting, I'll post it here as an FYI in case anybody cares :
On my server the first writer returned by ImageIO was an instance of JPEGImageWriter and on the other servers was CLibJPEGImageWriter. And it happens that only JPEGImageWrite can write the type of TIFF that we are having.
The fix was to iterate through all the writers and pick the instace of JPEGImageWrite, instead of the first one found.
Lumi -
Dynamic image load with MovieClipLoader
I'm trying to load five images from five URLs. If I use the
documentation exactly as is, it works fine. Problem is, I don't
want to createEmptyMovieClip, I want to use an existing one that's
tucked inside a movie instance. Also, the images coming in are of
unknown size, but have a standard 4:3 size ratio. I'd also like to
scale them down to 180x120 after they arrive. Any help would be
greatly appreciated.
The code below only loads one image (which isn't working). I
will eventually need it to load five different images.Dynamic text that doesn't have embedded fonts won't respond
to tweening, alpha, etc. So you need to embed the font(s). There
are a couple of ways to do this depending upon what you are doing.
But most likely you can just select the text field and click the
font button on the properties panel and select embed. Also I would
recommend that you use _visible=false instead of alpha for this
effect.
I'm not sure what the second go-round is. Can you explain
that a bit better? You should be able to use the same loader, so
I'm not quite sure what is going on. Again, look for some helpful
places to put some traces and see if you can figure out what is
going on. Remember that generally Flash does what we tell it, not
what we want! So if you can find the places where you are telling
it to do things you can figure out what is happening.
Also I'm not clear on what is going on with the variables and
text. Generally I would recommend against using the variable
property of text fields. That is a leftover from the Flash 5 days
when you couldn't work directly with dynamic text fields. Instead
give the fields instance names and then assign the text with the
text property.
myTextField.text="some value in here";
myTextField2.text=someStringVariable; -
Images loaded with a random number
Hi All,
I have made a flash movie as seen at
http://www.coffeemamma.com.au
and would
like to change the following:
I'd like to generate three random numbers from 1 to 5
inclusive but I want
to ensure that each number is different - e.g. 2, 4, 1 (not
2, 4, 2). I know
how to generate ONE random number, but I'm stuck on comparing
them to see
whether they are the same (and if they are, then generate new
numbers until
they are unique).
With the three numbers I would like to load images based on
those numbers -
e.g. '_image_2.jpg' then '_image_4.jpg' then '_image_1.jpg'.
This part is
fine IF I can generate the numbers.
I'd also like to have the images come to the front when they
are hovered
over with the mouse and then to go 'back' to their original
position when
the mouse moves away. This I'm completely stuck on.
I'd also like to be able to put the newly loaded images into
certain
positions (as per the example) rather than only loaded to
(0,0) coordinates.
I also want to be able to have the images masked as they come
in (as per the
example) in order to avoid white corners on the top images.
I also have a page as per
http://www.wasabi.org.au/wodonga.shtml
which has
some of the functions I want to use, but I can't seem to get
some of the
functions working in my new movie...
Many thanks,
BruceI recommend to read at least the first two "introduction articles" from sun's Java >Card homepage: http://developers.sun.com/techtopics/mobility/javacard/articles/
Thanks a lot ... really interesting. I learnt already alot with that !
I am sorry but the code you posted is J2SE-code, not JavaCard code. The JavaCard >environment is very restricted:
No Integer (most cards don't even support the simple "int") and no String class.Oops :) ... i knew something was wrong hi hi
This is my new code, it seems to work:
/* SEND_CHALLENGE */
private void sendChallenge(APDU apdu){
byte[] apduBuffer = apdu.getBuffer();
RandomData random = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
random.setSeed(randomArray,(short)0,(short)32);
random.generateData(randomArray,(short)0, (short)32);
Util.arrayCopy(randomArray,(short)0,apduBuffer,(short)0,(short)32);
apdu.setOutgoingAndSend((short)0, (short)32);
}Thanks a lot
I'am going to be back soon for some more questions i think ! -
i managed to create a rotating image banner with the help from this website
http://www.communitymx.com/content/article.cfm?cid=651FF
but without the fade-in fade-out effect it doesn't look very nice. how can i make the images fade-in like in the below website
http://www.flipflopflo.co.uk/home
i found some help here
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
but (as i am not professional user) i dont understand what to do with the scripts shown there. for example on "Step 2" it says
"Step 2: Then, insert the following sample HTML for 2 sample Fade In slideshows:"
insert where?free flash tutorials sites list here
http://www.links-mylinks.com/2007/10/flash-sites-free-tutorial-templates.html -
Can I create a rotating image with sevaral images in Photoshop?
I was wondering if I can create a rotating image with sevaral images in Photoshop? Much like a gif? Would this improve my page load time or would it be the same as loading a slideshow? Here is an example of what we wanna do vacationsalabama
Yes you can create a gif in PS to do this but it would be much easier to accomplish with some simple JQuery Image slider.
Several examples here
and here
The benefit is they load faster, have speed options, and switching images out is a breeze. They can also have links asigned to the images as they appear. -
I can't rotate images or text with two fingers on my trackpad.
I have the most recent version of Keynote, using iOS 10.9.1 and a bluetooth trackpad. Everything was working fine with the various gestures and now the rotation (two finger twisting) won't rotate images or text boxes. Anybody else having this issue? Any fixes you've seen that work?
I've turned my bluetooth trackpad on/off. I've checked my trackpad preferences checked/unchecked/checked. Nothing seems to work.give gesture back please as soon as possible!!!
-
Rotating Image with Fade Effect
Ok looking to rotate an image with a fade effect; below is a rotating image code.
(Wanting this effect to be transitional and smooth. Transparency? Opacity?)
<script language="JavaScript">
<!--
function adArray() {
for (i=0; i*2<adArray.arguments.length; i++) {
this[i] = new Object();
this[i].src = adArray.arguments[i*2];
this[i].href = adArray.arguments[i*2+1];
this.length = i;
function getAdNum() {
dat = new Date();
dat = (dat.getTime()+"").charAt(8);
if (dat.length == 1)
ad_num = dat%ads.length;
else
ad_num = 0;
return ad_num;
var ads = new adArray(
"img1.jpg","http://www.domain.com",
"img2.jpg","http://www.domain.com",
"img3.jpg","http://www.domain.com");
var ad_num = getAdNum();
document.write('<div align="center"><A HREF="'+ads[ad_num].href+'" target="_blank"><IMG SRC="'+ads[ad_num].src+'" '
+'BORDER=0 name=js_ad></A></div>');
link_num = document.links.length-1;
function rotateSponsor() {
if (document.images) {
ad_num = (ad_num+1)%ads.length;
document.js_ad.src = ads[ad_num].src;
document.links[link_num].href = ads[ad_num].href;
setTimeout("rotateSponsor()",4000);
setTimeout("rotateSponsor()",4000);
// -->
</script>
Any ideas?Here is the script I finally got working! It would have not came to me without your help guys!
<script>
var pictureWebPartName="Pictures"; // name of the picture library web part
var showThumbnails = true; //otherwise show full sized images
var randomImg = true; //set to true to show in random order
var useCustomLinks = false; //true to use second column as URL for picture clicks
var RotatingPicturesLoopTime = 5000; //2000 = 2 seconds
var imgToImgTransition = 1.0; //2 = 2 seconds
// don't change these
var selectedImg = 0;
var imgCache = [];
var imgTag;
function RotatingPictures()
imgTag = document.getElementById("RotatingImage");
//Find the picture web part and hide it
var Imgs = [];
var x = document.getElementsByTagName("TD"); // find all of the table cells
var LinkList;
var i=0;
for (i=0;i<x.length;i++)
if (x[i].title == pictureWebPartName)
// tables in tables in tables... ah SharePoint!
LinkList = x[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
// hide the links list web part
LinkList.style.display="none";
break;
if (!LinkList)
document.all("RotatingImageMsg").innerHTML="Web Part '" + pictureWebPartName + "' not found!";
//Copy all of the links from the web part to our array
var links = LinkList.getElementsByTagName("TR") // find all of the rows
var url;
var len;
for (i=0;i<links.length;i++)
//if (links(i).id.match("row")!=null)
if (links[i].childNodes[0].className=="ms-vb2")
len=Imgs.length
Imgs[len]=[]
Imgs[len][0] = links[i].childNodes[0].childNodes[0].href;
if (useCustomLinks)
if (links[i].childNodes[1].childNodes.length>0)
{ Imgs[len][1] = links[i].childNodes[1].childNodes[0].href; }
else
{ Imgs[len][1] = "" }
if (Imgs.length==0)
document.all("RotatingImageMsg").innerHTML="No images found in web part '" + pictureWebPartName + "'!";
for (i = 0; i < Imgs.length; i++)
imgCache[i] = new Image();
imgCache[i].src = Imgs[i][0];
if (useCustomLinks)
imgCache[i].customlink=Imgs[i][1];
RotatingPicturesLoop();
// now show the pictures...
function RotatingPicturesLoop()
if (randomImg)
selectedImg=Math.floor(Math.random()*imgCache.length);
if (document.all){
imgTag.style.filter="blendTrans(duration=" + imgToImgTransition + ")";
imgTag.filters.blendTrans.Apply();
url=imgCache[selectedImg].src
if (useCustomLinks)
{ RotatingImageLnk.href=imgCache[selectedImg].customlink; }
else
{ RotatingImageLnk.href = url; }
if (showThumbnails)
// convert URLs to point to the thumbnails...
// from airshow%20pictures/helicopter.jpg
// to airshow%20pictures/_t/helicopter_jpg.jpg
url = revString(url);
c = url.indexOf(".");
url = url.substring(0,c) + "_" + url.substring(c+1,url.length);
c = url.indexOf("/");
url = url.substring(0,c) + "/t_" + url.substring(c,url.length);
url = revString(url) + ".jpg";
imgTag.src = url;
if (document.all){
imgTag.filters.blendTrans.Play();
selectedImg += 1;
if (selectedImg > (imgCache.length-1)) selectedImg=0;
setTimeout(RotatingPicturesLoop, RotatingPicturesLoopTime);
// utility function revString found here:
// http://www.java2s.com/Code/JavaScript/Language-Basics/PlayingwithStrings.htm
function revString(str) {
var retStr = "";
for (i=str.length - 1 ; i > - 1 ; i--){
retStr += str.substr(i,1);
return retStr;
// add our function to the SharePoint OnLoad event
_spBodyOnLoadFunctionNames.push("RotatingPictures");
</script>
<!-- add your own formatting here... -->
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height="125" width="160" align="center" valign="middle">
<a name="RotatingImageLnk" id="RotatingImageLnk" alt="click for larger picture">
<img src="/_layouts/images/dot.gif" name="RotatingImage" id="RotatingImage" border=0>
</a>
<span name="RotatingImageMsg" id="RotatingImageMsg"></span>
</td>
</tr>
</table>
</center>
Thanks again guys! -
Issue with Image Loader in 14.0
Hi All,
In our application, we have a custom function module in ECC, which is passing the URL of an image uploaded on the content management server(KPRO). Custom FM calls 'SDOK_PHIO_GET_URL_FOR_GET' to get the URL of the image.
When we execute the FM in ECC, we get the URL as:
http://gbswidkprodb01.global.rexam.net:81/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=YA&docId=001F296E9EB61ED3B6F490000438C20C&compId=TJ12A.jpg&accessMode=r&authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expirat
when I use this URL in the browser the image gets loaded in browser.
When I capture the output of JCO call in write file URL returned from FM is:
http://<server>:81/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=YA&docId=001F296E9EB61ED3B6F490000438C20C&compId=TJ12A.jpg&accessMode=r&authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expiration=20140617181313&secKey=MIIBUgYJKoZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UEBhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0kwNTIwMDIwMzM1MQwwCgYDVQQDEwNCQzMCByASCCcTUiEwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDYxNzE2MTMxM1owIwYJKoZIhvcNAQkEMRYEFM%2FKd4MzWL0y1KfF58AHNg9PYqOlMAkGByqGSM44BAMELzAtAhUAtqASnXbD3E2ZM8EhG%2FLxgJhKCs0CFH0qFlBxzWlzS8kjeFw3kad63SHW
when I use this URL in the browser I get 'HTTP 400' error.
Using either of the two URL's in the image loader I get the error:
[WARN] [ImageLoader_0]ImageLoader_0 Status: 400 - (bad request)
We are currently on SAP MII 14.0 SP05(patch 3).
Thanks in advance for your help.
Regards,
DarshanSam,
I tried logging in to ECC with the same user as the one that is making the Jco connection and it is giving the same URL which i was getting earlier when i was executing the FM with my user id. I am testing the FM through SE37.
There is no logic in the custom BAPI to replace the <server> keyword. Based on the image name, it gives the URL of where the image is stored on the KPRO server.
Could not find URL Decode function in the MII link editor, i believe it is the decode function which you are referring to. Even that is not working. If it is something other than this, do let me know.
PS: This works fine in the 11.5 system from which we have upgraded to 14.0.
regards,
darshan -
Safari 2.0.3 - Pages load with no images or some images
Hi
I just bought a new iMac Intel. It comes with safari 2.0.3
Any page on the web loads without the images. In place of the image is a ? icon.
If I hit the reload button a few times, the images load up. Sometimes even after a dew reloads, some images are still not loaded.
Any idea why this is happening?
Thanks in advance for any assistance.I have not changed any of the Quicktime settings yet.
Since posting I have installed Firefox. Firefox loads the page www.apple.com flawlessly.
If you would like me to check any of the quicktime settings, can you give me more details on how to do this?
Thanks for your advice -
Something in correct with Image loading....
Hi All,
I have created a very simple form to load image into a form.
Using forms 10g dev suite on win XP.
I load two images for two image items.
for IMAGE1 I have written the below code in its when-image-pressed trigger and this Image loading WORKS FILE...
i get the desired image loaded
DECLARE
tiff_image_dir VARCHAR2(80) := 'C:\DevSuiteHome_1\forms\111.gif';
photo_filename VARCHAR2(80);
BEGIN
:System.Message_Level := '25';
photo_filename := tiff_image_dir ;
READ_IMAGE_FILE(photo_filename, 'GIF', 'emp.my_test_button');
READ_IMAGE_FILE(photo_filename, 'GIF', 'emp.my_test_button');
IF NOT FORM_SUCCESS THEN MESSAGE('This employee does not have a photo on file.');END IF;
:SYSTEM.MESSAGE_LEVEL := '0';
END;
the problem is with Image two...it laods some incorrect image .....as i am trying to USE JAR file
the trigger code is below
DECLARE
photo_filename VARCHAR2(80);
BEGIN
:System.Message_Level := '25';
READ_IMAGE_FILE('111.gif', 'URL', 'emp.image_item');
IF NOT FORM_SUCCESS THEN MESSAGE('This employee does not have a photo on file.');END IF;
:SYSTEM.MESSAGE_LEVEL := '0';
END;
below is the entry for my formsweb.cfg
I have placed my
[my_app]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,AppIcons.jar
#archive=frmall_jinit.jar
pageTitle=Oracle Forms - My Application
form=my_test_button.fmx
imagebase=codebase
userid=scott1/tiger@ora11g
My classpath entry in ENV file is
CLASSPATH=C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\forms\demos\my_app\AppIcons.jar;C:\DevSuiteHome_1\forms\demos\jars\uploadserver.jar;C:\DevSuiteHome_1\forms\demos\jars\demowebserviceclientside.jar;C:\DevSuiteHome_1\jdk\jre\lib\rt.jar;C:\DevSuiteHome_1\forms\demos\jars\javamailintegration.jar;C:\DevSuiteHome_1\forms\demos\jars\mail.jar;C:\DevSuiteHome_1\forms\demos\jars\activation.jar
What mistake am i doing?
rgds,
sSlava ,Magoo and S@r@h....
I have done the following,still no respite..
step 1) Create the jar file
C:\myapp>jar cvf AppIcons.jar *.gif
added manifest
adding: 111.GIF(in = 28895) (out= 28675)(deflated 0%)
adding: 222.GIF(in = 28895) (out= 28675)(deflated 0%)
adding: name_gif.GIF(in = 28903) (out= 28681)(deflated 0%)
step 2) move the AppIcons.jar in the ClassPATH specified by env file(envFile=formsdemo.env)
in my case the classpath looks like below
and I have moved the AppIcons.jar to C:\DevSuiteHome_1\forms\demos\my_app
CLASSPATH=C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\forms\demos\my_app\AppIcons.jar;C:\DevSuiteHome_1\forms\demos\jars\uploadserver.jar;C:\DevSuiteHome_1\forms\demos\jars\demowebserviceclientside.jar;C:\DevSuiteHome_1\jdk\jre\lib\rt.jar;C:\DevSuiteHome_1\forms\demos\jars\javamailintegration.jar;C:\DevSuiteHome_1\forms\demos\jars\mail.jar;C:\DevSuiteHome_1\forms\demos\jars\activation.jar
step 3) shutdown and restart the OC4J
To Answer Slava's question:
2. Check Jinitiator console and see if AppIcons.jar is loaded.
You should see :
Loading http://host:port/forms/java/AppIcons.jar from JAR cache
YES its loading prefectly.
To answer Magoo's questions:
q)What is the incorrect image look like? Somehting like a broken link image?
Yes,the image is a small page icon which is broken like a torn page(and has three small solid figures in it)
q)Do you get there a message like Unable to load image 111.gif for Image Item ?
No I do not get any error message.
What next ?
rgds
s
Maybe you are looking for
-
"The application was unable to start correctly (0x...
I have a Dell All-in-One that I had to send in for a new motherboard. While they had it, I had them reformat it. I'm trying to put Skype back on it, but I keep getting this error message after it downloads and when it tries to install: "The applicati
-
New iPod Nano 5G Not Recognized
Okay, this is a weird one. I bought an iPod Nano from Apple and it is not recognized by my Mac Pro. My Macbook sees it just fine and so does a Windows PC at work. I've followed the troubleshooting found in TS1410 on Apple Support. In addition, on the
-
IOS 7 blocked uncertified chargers?Is there any way to fix this?
I just read that Apple blocked uncertified lightning cables with the ios 7! Those were the only ones I had that WORKED, APPLE! I have a box full of certified chargers that don't work. The optimism I had for a better quality charger lasted only as
-
Dear all, From few days past I am having the problem of accessing StorEdge 3510 by my SF V890. Suddenly the storage light stop blinking and the server stops accessing the StorEdge. When it occured first time, I shut down both the server and StorEdge
-
How to get data from the Tables (Can func.module help then how to write )
Hi, Can anyone tell the use of functional module to extract the data from R/3.i am working on PM module and need to extract the status of work order and equipment which i can get from First i had to get objnr then i had to go to jsto in jsto i get st