on 04-16-2007 10:47 AM
Hi all,
My requirement is to upload 'n' number of tif files and display the file name in dropdown.
If i select the file name, it should display the file in Iframe.
My problem is i am not able to upload the tif file.
try{
byte []by=new byte[wdContext.currentContextElement().getPhotoResource().read(true).available()];
wdContext.currentContextElement().getPhotoResource().read(true).read(by);
String ext=wdContext.currentContextElement().getPhotoResource().getResourceType().getFileExtension();
WDWebResourceType res=wdContext.currentContextElement().getPhotoResource().getResourceType();
IWDResource resource=null;
resource=WDResourceFactory.createResource(by,"sample",WDWebResourceType.getWebResourceTypeForFileExtension(ext));
wdContext.currentContextElement().setPhoto(resource.toString());
}
catch(Exception e){
}
In the above code Photo is Iframe Context variable.
If i upload tif file means it directly giving Save and Open options is giving.
Please how to slove this probelm...........................
Thanks,
Suni
Hi Satya,
In HTML a TIF file can be displayed as"
<html>
<body>
<object height="100%" width="100%"
type="image/tiff" data="PO.tif">
</object>
</body>
</html>
Hope it helps.
Regards,
Alka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.