The payoff in the sendmail function comes at the end using the Transport object to send a pre-constructed MimeMessage. Many of our functions such as xmlread make use of more complicated series of calls to java objects. To change the Java version (not recommended) you can follow these instructions.įor instance instead of MATLAB's str2num you could use: Double's parseDouble. To determine the Java version use the command version( '-java'). The running version of the JRE depends on your version of MATLAB and operating system and determines what API functionality is available from MATLAB. You can use any public method in the Java SE API from the command line. Using Java from a MATLAB program is as simple as using a MATLAB function, particularly if you are used to using MATLAB package functions. My solution takes advantage of the freely available Apache Commons Codec package. Since there is no toolbox function for this, I decided to take advantage of a Java library since (a) I could use the same library on every platform (instead of needing a different pre-compiled binary) and (b) I am pretty comfortable with Java. This time I wanted to use a readily-available solution. At first I thought to implement the base64 algorithm myself in MATLAB, but I learned my lesson the hard way a few years ago writing my own md5 hash-computing program (don't ask). My solution to the image challenge involves encoding binary information from an image file as text through the base64 scheme. Or, if you don't have the time to do that, you can still win a t-shirt by sending us your desktop. The second challenge involving ActiveX will remain open until I get chance to write up its solution. I thought the problem of displaying a figure without an image file was too interesting to pass up, so I figured out the solution myself and put it up on the file exchange. So far no one has taken me up on the extra credit from the Interactive Web Pages post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |