[VB, CS3] How to place images using wildcards in filenames
Dear all,
Can anyone think of a way to place an image using a wildcard in the filename?
I can place the image fine if the complete filename is known, but what if the filename changes from day to day? - eg it could be House1234.tif for one document then House56r.tif for another. So I'd like to place House*.tif sort of thing. The files are in different folders, of which the path is known.
Any ideas?
Nigel
Get the contents of the whole folder in an array, then you can check each item to see if it matches some criterium. In Javascript (VB should be similar):
function find_file (dir, mask)
var f = Folder (dir).getFiles ('*.*');
for (var i = 0; i < f.length; i++)
if ( // compare f[i].name and mask here
return f[i];
This returns the first file in "dir" that matches "mask".
Peter
Similar Messages
-
Hello, i am new to the mac and i need to learn how to re image using an external hard drive
Hello, i am new, like baby fresh new,...lol, to the mac and i need to learn how to re-image using an external hard drive.
How to replace or upgrade a drive in a laptop
Step One: Repair the Hard Drive and Permissions
Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
Step Two: Remove the old drive and install the new drive. Place the old drive in an external USB enclosure. You can buy one at OWC who is also a good vendor for drives.
Step Three: Boot from the external drive. Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears. Select the icon for the external drive then click on the downward pointing arrow button.
Step Four: New Hard Drive Preparation
1. Open Disk Utility in your Utilities folder.
2. After DU loads select your new hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. Otherwise, click on the Partition tab in the DU main window.
3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
Step Five: Clone the old drive to the new drive
1. Open Disk Utility from the Utilities folder.
2. Select the destination volume from the left side list.
3. Click on the Restore tab in the DU main window.
4. Check the box labeled Erase destination.
5. Select the destination volume from the left side list and drag it to the Destination entry field.
6. Select the source volume from the left side list and drag it to the Source entry field.
7. Double-check you got it right, then click on the Restore button.
Destination means the new internal drive. Source means the old external drive.
Step Six: Open the Startup Disk preferences and select the new internal volume. Click on the Restart button. You should boot from the new drive. Eject the external drive and disconnect it from the computer. -
How to resize image using java imageio
Hello ,
I want to know how to resize image using java imageio.
I dont want to use java awt because i am writing a web application.
help is very much needed
thank you.Just use an AffineTransform !
Its much easier -
How to get image using Http and how to save in Smulator
Hi guys,
Am working in black berry bold. i dont know how to get image using htp connection and one more thing i need to save this image in side simulator directory............. what are the specific API i should...
Guide me.........If you want the input image size you need to pass it in as parameters.
A discussion thread on this topic is:
http://forums.adobe.com/thread/29948
-- Daniel R. <[email protected]> http://danielr.neophi.com/ -
I am using the Andrew protoypes library. In it there are flipcards that i want to use to place images. How do i get to place images into these flipcards.
Hi,
Please take a look at this post for a similar discussion : How do I make the "Flip-Card" widget work??
Regards,
Aish -
How to place image and crop to fit inside vector shape
I'm trying to place an image on top of a vector shape and then i want to trim the edges of the image so it takes on that shape (essentially filling the shape with the image)
I'm also trying to do this with two layers of vector shapes, i want to fit one within the other and not have any over hang.. the top or "filling shape" is an array of hexagons (making a honeycomb like structure) i want it to fit within the underlying oval (lime green one) shape. here's a link if you want to see what i'm doing.. its the one on the right
www.oregonstate.edu/~pearsoan/images/achieve3.ai
How do you do this?Blue,
Put the shaping (vector) path on top of the image, select both, and Object>Clipping Mask>Make.
I cannot open the file to see what there is to see, and I have to leave in a moment.
If you upload an image, using the Camera icon, all helpers can see it here in the thread. -
How do I Filter using wildcards in Siena?
How do I perform a wildcard Filter something like:
Filter (SourceTable, Surname = "Jon*")?Hi,
You could use the in keyword:
Filter(SourceTable, "Jon" in Surname) -
hi,
i am confronting a problem how to upload image from local PC to web server . I am using Tomcat 4.0
please help me by sending code
thanksHi,
Here is the solution for uploading images and displaying images. I am using struts with JSP, so this code has a Action and ActionForm class. You can put the same code in Java Beans or Servlet class to run it. This code has two JSP files - one for Upload (upload.jsp)and other for Image(image.jsp) display. It has a Servlet also to display the image. Here is the code file wise.
Upload.jsp **********************************************************
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
<title>New Page 1</title>
</head>
<body>
<html:form action="uploadAction.do" enctype="multipart/form-data" method="POST">
<p>File to upload
<html:file property="fileUpload" size="20"/></p>
<p><html:submit value="Upload" property="upload"/></p>
<p> </p>
<p><html:img src="image.jsp"/></p>
<p> </p>
</html:form>
</body>
</html:html>
Image.jsp*****************************************************************
<jsp:useBean id="upload" class="uploadtest.uploadActionForm" scope="session">
</jsp:useBean>
<%
byte[] rgb=(byte[])session.getAttribute("byte");
request.setAttribute("byArr", rgb);
%>
<!--
The image data is now on the request object.
Forward the user to the showImage servlet.
That servlet will process and display the image data contained on the request object.
-->
Image is<p>
<jsp:forward page="/showimage" />
Struts Action Class - UploadAction.java **************************************************
import javax.servlet.http.*;
import java.io.*;
import org.apache.struts.upload.FormFile;
import org.apache.struts.action.*;
public class uploadAction extends Action {
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
uploadActionForm upload = (uploadActionForm) actionForm;
try {
int size=upload.getFileUpload().getFileSize();
//if (image != null) {
byte[] byteArr = new byte[size];
//Create an input stream to read the uploaded file.
ByteArrayInputStream bytein = new ByteArrayInputStream(upload.getFileUpload().getFileData());
// Load the input stream into the byte Array.
bytein.read(byteArr);
// Close the input stream.
bytein.close();
// Load the byte[] into the content field.
upload.setContent(byteArr);
HttpSession ses=httpServletRequest.getSession();
ses.setAttribute("byte",byteArr);
return actionMapping.findForward("success");
} catch (Exception ex) {
ex.printStackTrace();
return actionMapping.findForward("success");
Struts ActionForm class ---uploadActionForm.java***************************************************
package uploadtest;
import org.apache.struts.action.*;
import org.apache.struts.upload.*;
import javax.servlet.http.*;
public class uploadActionForm extends ActionForm {
private FormFile fileUpload;
private byte[] content;
public FormFile getFileUpload() {
return fileUpload;
public void setFileUpload(FormFile fileUpload) {
this.fileUpload = fileUpload;
public byte[] getContent()
return content;
public void setContent(byte[] theFile)
this.content = theFile;
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
/**@todo: finish this method, this is just the skeleton.*/
return null;
public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
Servlet to display image --- ShowImage.java ********************************************************
import java.io.*;
import java.util.*;
public class ShowImage extends HttpServlet {
//Initialize global variables
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
byte[] rgb = (byte[]) request.getAttribute("byArr");
if (rgb != null)
response.setContentType("image/gif");
OutputStream stream = response.getOutputStream();
stream.write(rgb);
else
response.setContentType("text");
response.getWriter().write("attribute byArr not found");
This code will enable to to upload and display the image. If you know Struts, then you can write the Struts-Config.xml file by yourself. Other wise write to me, I will send you that. If you want to save the image in database, then you have to keep it as BLOB datatype is database. For database you need to send the byte array in the uploadAction.java file to database. Database will keep the image as binary.
Thanks
Amit -
How to load images using xml in flash
Hi
im working on a quiz project where i plan to load images using xml in to flash, can any one help with the script with AS2 or 3You'll find a tutorial for what you are after here:
http://www.gotoandlearn.com/play?id=22 -
How to use wildcard in filename , in SyncRead operation in File Adapter.
Hi All,
Is this possible to use wildcard character in file name while creating file adapter for SyncRead Operation.
I used write*.txt as a file name to read. But got below error -->
file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_notification2_1.0_93d419d1ca67f87872914bf6daf16180.tmp/readfile3.wsdl [ SynchRead_ptt::SynchRead(Empty,Es) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: No file to process.
File d:\temp\temp1\write*.txt to be processed was not found or not available
; nested exception is:
ORABPEL-11007
No file to process.
File d:\temp\temp1\write*.txt to be processed was not found or not available
Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
Best Regards
VikashYou cannot defined the wildcard for the file names. But you can provide the file name dynamically if you are on soa suite 10.1.3.4 minimum. You can get information about that in this link http://download.oracle.com/docs/cd/E12524_01/relnotes.1013/e12523/adapters.htm#CHDBBFBD
-
How to send images using SOAP adapter
hi All,
I want to send images using the SOAP adapter . ( Sender and Receiver )
Can anybody help out with this requirement
Regards,
LoveenaHi,
Following links may help U
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
to know the basics about soap adapter u cn check out this link
/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
to get in detail about the attachments chk out this link
hi i am unable to attach an attachment in File to mail scenario
Regards
Pullarao -
Good morning everyone!
I'm pretty new in ODI and I need to read a text file which name starts by "INV", the rest of the filename is variable: date and time.
Is there a quick solution to do that? Is it possible to use wildcards (*, %) like OS commands to find and read the file?
Thanks in advance!
Have a nice day.Yes this can be done. You could use an OS command to find the filename using wildcards pass the name of the file to a consuming interface as a variable and then read the file
-
How to place image in flv player
I would like to have an image, frame grag, etc instead of a
blank screen show on the flash player on my website. How is this
done? I use flash CS3 encoder, but do not know how to use flash
otherwise.I believe what you are looking to do is to set a poster
frame. You should be able to do this with Flash, or you will need a
program like Quicktime Pro to set the poster frame of a
movie. -
Hi, I am running InDesign CS3 5.0.4 and am suddenly unable to place an image in a document, either using the menu or the shortcut, and file, new or existing. CS3 crashes instantly (and asks me what I was doing when it crashed). This makes the program effectively unusable and leaves me high and dry.
I have reinstalled CS3 along with the 5.0.4 udpate. I have run Disk Utility to repair permissions. I am running 10.5.8.
Is there any help at all...I hope?If you did a clean install of it then it's probably not a plugin.
You might try this and see if it helps http://www.adobe.com/support/contact/cs3clean.html
In saying that, i wonder if you have Version Cue turned on in the preferences? I've known it to cause problems, but never in this area, but maybe if you turn Version Cue off in the preferences Edit>Prefereces>File Handling and deselect Version Cue and restart InDesign?
Other than that I'm out of ideas. Something buggy about something on the computer, I doubt it's InDesign itself, the CS3 clean script might fix a weird reg problem.
Are you on Windows? Sorry I forgot to ask that question (obviously not as you say CMD instead of Control)
I'm not sure what can cause this on the Mac or if there is an easy fix? Have you dumped your system preferences? What version of Mac OS are you running? -
How to send images using Tuxedo 6.5
What would be the best way to send images( bmp, jpeg, gif) using Tuxedo 6.5? Ideally,
I would like to keep the image with the data, ie., have the image as a field in
the FML32 buffer. I can't see anyway of doing this... Create a new buffer type??
Thanks
RichRich,
How about storing the binary image in an FML field of type CARRAY?
Be aware of the performance impact of very large buffers - >75% of MSGMNB (I
think) and they're transferred by file i/o -
Regards,
Peter.
Rich Wojcik wrote:
What would be the best way to send images( bmp, jpeg, gif) using Tuxedo 6.5? Ideally,
I would like to keep the image with the data, ie., have the image as a field in
the FML32 buffer. I can't see anyway of doing this... Create a new buffer type??
Thanks
Rich
Maybe you are looking for
-
Macbook Pro 2011 running slow - mountain lion
Hi, Since updating to mountain lion my mbp is running very slow, Have repaired disk permissions and ran clean my mac but no improvements. The hard disk is less than half full and no login items up on start up. What more can I do?
-
French Withholding tax report issue
I have issues using transaction ENPA. not all the invoices go into the report sometine just part of it. IT says it's because many delivery notes has been grouped in one invoice. Is it true? for the transaction to work well, am I obliged to have one i
-
How to validate directory on the server in sap
Hi Experts, i need to validate directory on the server in sap similar like validate directory on the local in sap using fm "GUI_GET_FILE_INFO". i need just like this fm which will validate directory on the server in sap. Thanks Nag
-
Hi guys Trying to run this package on SQL 2012 agent and getting below error . No more details I could find so far. The step did not generate any output. The return value was unknown. The process exit code was -1073741819. The step failed. Abou
-
Reuse/Link Processes in multiple scenarios
Hi there, I need some clarification concerning the Solution Manager. The idea and its realisation of scenarios and process in Solution Manager is really great. There's only one thing I am missing: It seems like that it's not possible to asscociate on