BMP Header Info error 16
When I bring in my bitmap, the ERROR 16 occured at READ BMP Header Info.VI Possible reason(s) Labview Image not found.
So, the size of this bitmap is 89.5kB, Dimension 1029 x 733, width 1029 Pixel, Height 773, Bit Depth 24.
The original bitmap is 1.83 MB Dimension 1600 x1200, width 1600 Pixels x 1200 Pixels, Bit Depth 8. I took this bitmap and resized it...now the resized image (compressed) cannot be brought into my VI. The original VI works.
What can I do to allow the compressed image to be read?
What compression was used by the conversion tool to compress this bitmap? The built-in LabVIEW Bitmap library does not support any compressions such as RLE or the newer JPG compression that have been added to newer Windows versions.
Since the diagram of those VIs is open it would have been easy to single step into the Read BMP Header Info.vi and see in there that the VI aborts on the "bitmap is compressed" flag.
And the solution is to use either directly JPG or PNG files and read them with the according VIs.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Similar Messages
-
Not able to Pass header info to Microsoft MapPoint WebService using WLS10
We are passing some Header info to the MapPoint Web Service from our client Web Service which is hosted in Weblogic 10, however we are not sure if the info is getting passed.
The actual soap header which we are trying to postis as below:
<env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<m:CustomerInfoFindHeader xmlns:m="http://s.mappoint.net/mappoint-30/">
<m:CustomLogEntry>2</m:CustomLogEntry>
</m:CustomerInfoFindHeader>
</env:Header>
We are using the below code snippet for setting the header:
Document doc = null;
try
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
doc = factory.newDocumentBuilder().newDocument();
catch(ParserConfigurationException pce)
System.out.println("ERROR -> " + pce.getMessage());
Element header = doc.createElementNS("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV:Header");
Element headerContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/","m:CustomerInfoFindHeader");
Element headerChildContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/", "m:CustomLogEntry");
headerChildContent.appendChild(doc.createTextNode("2"));
headerContent.appendChild(headerChildContent);
header.appendChild(headerContent);
Attr nsAttr = doc.createAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:m");
nsAttr.setValue("http://s.mappoint.net/mappoint-30/");
headerContent.setAttributeNodeNS(nsAttr);
findServiceControl.setOutputHeaders(new Element[] {header});
Here findServiceControl is the Service Control object.
Even if the code is not throwing any error/exception I am not able to see the header portion which invoking the Mappoint Web Service (using the weblogic test client for testing the webservice).
Is there any other methodology for setting the header.
Regards
Sanjeev SinghIf you're not sure the header is being created properly, you should switch to using a javax.xml.transform.stream.StreamSource and javax.xml.transform.dom.DOMResult. For instance:
import java.io.ByteArrayInputStream;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.stream.StreamSource;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
StringBuffer xml = new StringBuffer()
.append("<env:Header ")
.append("xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">")
.append("<m:CustomerInfoFindHeader xmlns:m=\"http://s.mappoint.net/mappoint-30/\">")
.append("<m:CustomLogEntry>2</m:CustomLogEntry>")
.append("</m:CustomerInfoFindHeader>")
.append("</env:Header>);
TransformerFactory xformFactory = TransformerFactory.newInstance();
Transformer transformer = xformFactory.newTransformer();
ByteArrayInputStream bais = new ByteArrayInputStream(xml.toString().getBytes());
DOMResult result = new DOMResult();
transformer.transform(new StreamSource(bais), result);
Document document = (Document)result.getNode();
findServiceControl.setOutputHeaders(new Element[] {document.getDocumentElement()});
If you want to see the SOAP request being sent to the Mappoint Web Service, add the following to the JAVA_OPTIONS environment variable (in the startWebLogic.cmd file), and bounce it:
-Dweblogic.wsee.verbose=*
-Dweblogic.log.RedirectStdoutToServerLogEnabled=true
This will write the SOAP request (and SOAP response) to the server log of the WebLogic Server instance, which the service control is running in. -
Hi all,
I am on a field campaign with my Labview-controlled instrument. I wanted to make a small change to the code and build it again for uploading to a cFP-2020 Fieldpoint but the application builder stopped with the following error message:
Error 7 occurred at ABAPI Dist Report Read Link Info Error.vi -> ABAPI Dist Cmp Settings to Disk Hier.vi -> ABAPI Get Settings From File2.vi -> ABAPI Get Settings From File.vi -> RTBEP_Invoke_Build_Engine.vi -> RTBUIP_Build_Invoke.vi -> RTBUIP_Build_Invoke.vi.ProxyCaller
This is another computer than the one I used in the lab previously so might have forgotten to install something. I just copied the whole application folder with project file and subfolders
to the Laptop I am using now. Labview version should be the same though (8.20).
Any suggestions?
OlafHello Olaf,
This error is usually found when a subVI or a support file (DLL, custom control, etc)
isn't able to be found by the application builder. Possible reasons
for this could include subVIs no longer located in their original
paths and in need to be relinked, a DLL that isn't included in the build,
and many other possibilities.
You wrote that you copied the project from another PC, so it is very possible that some file went missing. Are all VIs in your project executable?
You could try to mass compile all the VIs in your project and see if that helps.
Regards,
Johannes
AE, NI Germany -
How to Include "all" header info when you Reply and ReplyAll
Using Mail 3.5, when I Reply or ReplyAll I need to have "all" header info included automatically (From, To, CC, Subject, Date) which does occur when Forwarding but not when Replying to one or all. A REAL issue in the corporate world. Is there any way to accomplish this???
Thanks,Did you ever get a reply to this question or did you manage to solve the issue in any way or shape? I am experiencing the same so eager to hear a solution.
Thanks! -
Java Mail header info displayed in email results
I am having problems with the output generated by the send() method in javamail. The out contains unwanted email header info within the email. Please review code and email output. The Cc: thru Content-Transfer-Encoding should not display
-Thanks....
Greg
Code :
+++++
Session session2 = null;
Properties props = new Properties();
if (ConfigInfo.getBatchJob() == false) {
InitialContext ic = new InitialContext();
Session session = (Session) ic.lookup("myMailSession");
props.put("mail.from", fromAddress);
session2 = Session.getInstance(props);
} else // email from batch job
props.put("mail.store.protocol", "pop3");
props.put("mail.transport.protocol", "smtp");
props.put("mail.host", ConfigInfo.getMailHost());
props.put("mail.smtp.host", ConfigInfo.getMailHost());
props.put("mail.from", fromAddress);
session2 = Session.getInstance(props);
Message msg = new MimeMessage(session2);
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO, InternetAddress
.parse(toEmailAddress, false));
msg.setRecipients(Message.RecipientType.CC, InternetAddress
.parse(copyEmail, false));
msg.setRecipient(Message.RecipientType.CC, new InternetAddress(
copyEmail));
msg.setSubject(subject);
msg.setSentDate(sentDate);
msg.setContent(content, "text/plain");
Transport.send(msg);
Output:
+++++
....... Unwanted email header info <<<<<<<<<<
Cc: [email protected]
Mime-Vesrion 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
----Hi,
Thanks for the info.
The Extra Text is not to be seen now. Thats good. But I have another issue now. The email skips new lines.
If I have a new line in between the two blocks , the email skips the new line.
e.g. If I had to sent the following data:
"Line1
Line2"
It appears as "Line1 Line2" in the end. The new line is skippeed.
Appreciate if someone can tell me the reason/solution.
Regards,
ParagJ -
How to output header info. by using DMEE?
Hi,
When I am using DMEE to output payment file, I need to put a header info. before the itemlized transactions. For bank like Citibank, only need each transaction lines, so no header need to put. But some bank, need a header info. in front of the itemlized transactions. So could you guide if how I could set a header?
I tried to use level and change the repetition, but did not succeed.
Thank you very much!I've find out the solution. Just create another segment as the header, and set this segment as level 1, the same level as the father segment group. And this will just only output once.
> Hi,
>
> When I am using DMEE to output payment file, I need
> to put a header info. before the itemlized
> transactions. For bank like Citibank, only need each
> transaction lines, so no header need to put. But some
> bank, need a header info. in front of the itemlized
> transactions. So could you guide if how I could set a
> header?
>
> I tried to use level and change the repetition, but
> did not succeed.
>
> Thank you very much! -
Our Single SignOn agent (SiteMinder) places a custom variable, HTTP_EMPLOYEEID in the header. Using ASP, I can dump the header info and see that variable/value. But, with a similar CF script, some info, including HTTP_EMPLOYEEID is not there. Any ideas?
Thanks for the help. Unfortunately it didn't work. I'm working with my IT people, who installed and configured SiteMinder(user authentication agent) so I haven't dug into that, but they insist the problem lies with CF10. Using the following ASP script I can read the custom header variable EMPLOYEEID: <%= Request.ServerVariables("HTTP_EMPLOYEEID") %> But, with my CF script there doesn't appear to be a header variable by that name. I tried:
GetHttpRequestData().headers.employeeid, then
GetPageContext().getRequest().getHeader("HTTP_EMPLOYEEID"),
and
CGI.HTTP_EMPLOYEEID
Is there any reason why CF10 would not read the entire header content? When I cfdump the header I see other variables, but not EMPLOYEEID. Strange. -
Unable to get Http Header info in webservice Handler
Hi,
I have been trying to get the Header info in my custom Handler unsuccessfully
for the past few days.
Upon web search, I am constantly redirected to use a Servlet filter to get the
headers. I have to use the Weblogic Native SOAP engine and not any Servlet Filters.
In Axis, I can do a (HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
which returns the HttpServletRequest and then I can get the headers off that.
I can't find something similar in WebLogic. Any ideas?
Any help in helping me track this problem down would be much appreciated.
Thanks,
Sridhar.Yes, you are correct that you are taking a risk by using the "__BEA_PRIVATE_BINDING_PROP"
property, on the MessageContext object. The mechanism I provided is the recommended
(and supported) way to get the HTTP headers, as it only uses "documented" class.
Some developers think you are trying to "hide" something with undocumented classes,
but I don't think this is the case with BEA. There are good reasons and the point
you made about the likelihood of an unannouced future change breaking your code,
is probably pretty high on the list :-)
Getting the REMOTE_ADDR (or REMOTE_HOST) would most likely require the "undocumented"
approach you've taken. You could get the HttpServletRequest from this same HttpServerBinding
object, and call the getRemoteAddr() method on it. However, I really, really,
really think you should consult our "fantabulous" BEA support department, to see
if doing this will be supported.
Regards,
Mike Wooten
"Sridhar" <[email protected]> wrote:
>
Michael,
Thanks a bunch for your reply. I have been going crazy over this and
your reply
made my day.
I still have a slight problem with this though. This does not seem to
give me
the Client IP etc. Any ideas to get that?
Thanks again for the code. It was a great help.
Sridhar.
PS BTW, I found another way of getting the same info:
HttpServerBinding httpBinding = (HttpServerBinding) messageContext.getProperty("__BEA_PRIVATE_BINDING_PROP");
Enumeration headerEnum = httpBinding.getRequest().getHeaderNames();
while (headerEnum.hasMoreElements()) {
String header = (String) headerEnum.nextElement();
System.out.println("header = " + header);
System.out.println("header Value = " + httpBinding.getRequest().getHeader(header));
But, I am guessing BEA doesn't want me to go this route as they might
change the
implementation and my code will immediately break.
"Michael Wooten" <[email protected]> wrote:
Hi Sridhar,
You should be able to get at the HTTP Headers that were sent by theconsumer
of
your web service, by using the following code in your JAX-RPC handler:
import java.util.Iterator;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.rpc.JAXRPCException;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.MimeHeader;
import javax.xml.soap.SOAPMessage;
public boolean handleRequest(MessageContext mc)
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
try
SOAPMessage original = messageContext.getMessage();
MimeHeaders mimeheaders = original.getMimeHeaders();
MimeHeader mimeheader = null;
Iterator iter = mimeheaders.getAllHeaders();
for (; iter.hasNext();)
mimeheader = (MimeHeader) iter.next();
System.out.println("name=" + mimeheader.getName() + ", value="
+ mimeheader.getValue());
catch (Exception e)
e.printStackTrace();
throw new JAXRPCException(e);
Here's the output from the System.out.println():
name=Content-Type, value=text/xml
name=SOAPAction, value=""
name=User-Agent, value=Java1.4.1_05
name=Host, value=localhost:7001
name=Accept, value=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
name=Connection, value=Keep-Alive
name=Content-Length, value=505
Regards,
Mike Wooten
"Sridhar" <[email protected]> wrote:
Hi,
I have been trying to get the Header info in my custom Handler unsuccessfully
for the past few days.
Upon web search, I am constantly redirected to use a Servlet filterto
get the
headers. I have to use the Weblogic Native SOAP engine and not any
Servlet
Filters.
In Axis, I can do a (HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
which returns the HttpServletRequest and then I can get the headersoff
that.
I can't find something similar in WebLogic. Any ideas?
Any help in helping me track this problem down would be much appreciated.
Thanks,
Sridhar. -
How do you put the header info back? Sender, Subject, Attachment save option etc are suddenly missing from incoming email.
The email just displays the letter portion only.Open up the Mail preferences. Go to the "Viewing" section. There is a dropdown listbox for Header Details. You can set that back to default.
-
I can preview email when it arrives (I chose 5 lines) but when I then go to open up the full email, I see only the header info (To, Subject & Date); nothing in the body...it is blank. This only started recently as before, it worked as expected. Help?
I have two yahoo accounts and I know as they 'improved' their servers I had periodic outages. It'd work fine on my webmail on my computer, webmail on the iPad, but not via the mail app. And it was stuff on their end. It may be a case of wait and see and you may need to eventually remove/readd the account on your iPhone.
When the issue is on their end, unfortunately there's not much for users to do beyond wait it out or find work arounds. -
Displayed Header Info Prints Differently
The header info. that's displayed on-screen, is different than what gets printed. How do that happen?
Specifically, the displayed header info. shows; "To: My Name" but when printed that same line is changed to; "To: my email address".
I need the header and email to print the exact way it is displayed. How do I get Mail to accomplish this simple task?
Thanks,
PS - Apologies for the rude screen name. I got frustrated with the account creation hassle.Greetings,
When printing email, the displayed name (or Smart Address if you have that enabled) will always show the name and/or the email address of the person it's To: and From:; there's no way around that. -
INVALID END HEADER FORMAT error
I have just installed the Oracle 9i database on windows NT server, but the
Oracle Database Configuration Assistant returns INVALID END HEADER FORMAT error, eachtime i attempt to create a new database.
Oracle 9i software is installed, but no database was created. How can i solve this problem?
or how can i create the database manaully?
kayode,
[email protected]Hi,
If you don't have a database error (ORA-), then you're probably hitting some sort of DBCA bug. I'd use the DBCA to generate scripts and then run the scripts manually to see if you can create a database that way.
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci1054696,00.html
Are you able to create scripts through DBCA if yes then you can create your database with help of scripts.
go through below link for manually database creation ( it is also some working in Oracle 9i. After scripts creation. Script creation is different then oracle 10g.)
http://dbataj.blogspot.com/search/label/Database%20Creation
if not then you hit bug ( according to above mention link) raise a iTAR.
regards
Taj -
Viewing header info not aligning properly
I've been using Microsoft Entourage for about 6 years or so and decided to try out the Mail program. I'm running Mail 2.1.2 on OS 10.4.11. Everything is working fine except the way the emails are displayed. Header info, "From" and "To" are not aligning up properly with the names.
The sender's name (email address) is at the top and there are approx 12 line spaces (blank) before the "From:". "Subject" and "Date" info are aligned properly. Following the Date info, the receiver's name and email address is displayed followed by about 12 line spaces (blank) before the "To:". This makes the header info take up a lot of space with empty area.
I tried changing fonts and sizes with no luck. I ran all the updates which also didn't fix the problem. FYI, I use the Suitecase to manage my fonts.
Any suggestions will be greatly appreciated.
Thank you!This is a font issue. You’ve probably either disabled or removed a font that Mail needs to work properly (e.g. Helvetica):
Font Management in Mac OS X Tiger and Panther
You can only change in Preferences the fonts that Mail uses for some things. The font that Mail uses for other things, and for message headers in particular, is fixed (Helvetica). -
How To Copy and Print Multiple Message Basic Header Info
Is there a way to highlight multiple messages and then copy, print or export ONLY the basic header info such as From/To/ Subject/Date/Time, etc?
I've tried several things but always get the entire message when I select and try to copy or print a list from the Inbox or other mail boxes.
I looked at this article that seemed promising:
http://email.about.com/cs/macosxmailtips/qt/et071803.htm
. . . but can find no such "print selected summaries" dialogue or option to do so.
Any suggestions?
This would be for a printed list of email headers such as one's secretary might give one or email to one as a "heads-up" of what's on tap.
JoeL
PowerMac 1.25 DP, 1TB HDs, 1.75GB RAM, Superdrive Mac OS X (10.4.6)What I was hoping was that the features had been moved but were still available. Apparently now you can only copy and paste or print the entire message except if it's HTML in which case, that text cannot be coped from a header list.
Thanks!
JoeL -
Seq Header Duplication error when trying to burn dvd
I am using DVD Studio Pro 4
Mac OS 10.49
I imported a 36 minute QT video edited in FCP to DVDSP. When I try to burn a DVD, I get an error message that reads, " Seq Header Duplincation. I cannot figure out the problem.
Incidently, the 30 minute DVD seems to contain 7.4 GB on my hard drive, but DVDSP converts it to 3GB automatically. Does this sound customary?
Thanks,
Schoffocfilmmaker, I hear you. I am trying to run DVD Studio Pro on my new Mac Pro under Leopard and I am having nothing but problems. It always worked fine on my G5 iMac. First, it won't recognize my DVD burner (there have been several posts about that) and now I'm seeing the "Seq Header Duplication" error, with no further explanation. My video is already encoded. I don't know whether it is the Xeon, Leopard, or the latest build - but this thing is useless right now.
Maybe you are looking for
-
Please help (flash intro cs4)!!!
sorry if I posted in the wrong section but I need help. I have a flash intro and when ever I preview it,the intro background turns to black instead of staying the way it should be.Can somebody please help me out here,I need this flash intro for a web
-
Flickr set permissions doesn't work
In Aperture, when creating a new Flickr set while uploading, my selected permissions will be set on the uploaded photos correctly. Selecting an existing set, and changing permissions on that, has no effect on flickr photos. I can select a set and cha
-
hi, i have a problem with supressing zero values. i have a bar chart. there is only one bar on the chart. The bar is split into 2 sections. (ie stacked bar). On the top section, the number 23 is shown which is the result of code i used in a formula:
-
Storing Windows images on Windows PE Thumb Drive
Hi, I am following http://technet.microsoft.com/en-us/library/hh825109.aspx to create a boot able Windows PE pen drive. The first attempt was somewhat successful in that I was able to create a primary a Win PE x64 FAT32 and a secondary NTFS data part
-
Copy files and see names of files/folders as copying
I am having trouble backing up data between two drives and I want to see where it is getting stuck on. Is there a simple way or tool to see the actual progress of files being copied so I can see what file it is on at the time it has trouble?