Urgent Please!! Problem with BYTE
Hi,
I work with J2ME. I need to decode a binarie file and put the data in a byte[] to create after an image.
My problem is that i have a negative values (sign) . And its impossible to create an image with that.
Please can you tell me how can i do???
Thanks
Yaney
Not quite sure what you want to do but
i = 0-i;
and
i *= -1;
will change the sign of i.
Similar Messages
-
Urgent Please help with a Conferencing problem in CUCM 6.1
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
We have a configuration of CUCM 6.1. We have 24 voice ports (FXO) configured in H 323 registered with the call manger. A CUE 3.2 configured for IVR and mail box. Gateway is a Cisco 3845 and the IOS version is 12.4(15) T10
The problem is whenever a conference is configured with an outside number the FXO port is not releasing after the call disconnects. It is not FXO disconnect problem. This happens only when a conference is taking place. There is no problem with any other outside or inside calls.
I am attaching the configuration of Gateway. Please help me with the problem, I am very much thankful for you that.The Family pack covers upto 5 computers, other Install Disc cover one computer only.
-
URGENT! Problem with reviewing in adobe pro 8.
Hi,
I have a problem with reviewing in adobe professional 8.
I map network drive and configure adobe pro 8 for reviewing, but when I restart the computer, the network drive appear in "My computer" but not in adobe professional 8, and everyday i reconfigure the adobe pro 8 for reviewing...
Any sugestion for solve this problem?
Thanks.What Adobe product is it?
This is the Adobe Reader forum, please go to http://forums.adobe.com/index.jspa and find the right forum to post your question. -
Help please problem with export
I had some problems with safari on my imac (OS X) so I did some "repairs" I ended up deleting some keychains and I believe that is what cause the problem I'm having. However I don't know how to fix it.
When I try to export RAW images from my Lacie rugged external hard drive to the desktop into jpg I get this error...
"An internal error has occurred: ?:0: attempt to index field 'rootFile' (a nil value)"
I have a deadline very soon (in about an hour) and need help please.Fantastic, these things always happen at the most inconvenient time!!!
When you've got the job out of the way reboot the Mac and try the export to desktop again. If it is still broken then in Disk Utility run Repair Permissions on the Mac and La Cie.
Who do I send the bill to??? -
Urgent:BiG Problem with accents.
Hi,
I have a problem with accents in IPlanet 4.0 sp4.
I have a form in a html page and a servlet that takes the words that i
put in the form.
The problem is if i put accents in the word iplanet don' t serve the
correct caracters..
Please i need help...
ManuTry this
http://www.dhakamobile.com/nokia-fourth-generation-dct-4/9423-nokia-n97-hard-reset-keys.html
Good Luck
If I have helped at all, a click on the White Star is always appreciated :
you can also help others by marking 'accept as solution' -
URGENT timout problems with bc4j
Hello Jdev Team,
We have a serious problem with the BC4J. The situation is as
follows:
We use BC4J with jsp pages an run the whole thing on a j2ee
Container.
We have written our own ApplicationPool class and
ApplicationModule datatag because the users have to login
using different credentials. The login users are db-users. The
application release mode is reserved.
The application crashes frequently. 2 errors occur.
First of all we get an JBO-30003: "The application pool, {AM
Name}, failed to checkout an application module instance."
after the BC4J Container timeout --> messages ("BC4J HTTP
Container was timed out" and "The binding listener for { AM
name} was timed out")
We haven't found a way to alter the BC4J container timeout.
Where do we customize the timeout?
We have tried to use the HttpSessionTimeOut variable but it
seems to have no effect.
I hope you can help us with this one.
Second problem is that the J2EE Container stops functioning
after a couple of requests.
Even if an other browser is started (on the same or different
machine) the Container does not respond to any request.
We have found a Thread on technet handling this kind of problem
but the solution doesn't work in our case.
(the solution on technet was to put synchronized(session) around
each JSP page)
Now we run the application under Apache/Jserv and with the same
Runtime packages as used in the Container and the problem
seems to have disappeared.
Here follows the code of the ApplicationPool class:
The class is based on an example posted on technet
* @author Juan Oropeza
package be.cronos.dbwise.jbo;
import oracle.jbo.common.ampool.ApplicationPoolImpl;
import oracle.jbo.ApplicationModule;
import java.util.Properties;
public class SeperateLoginApplicationPool extends
ApplicationPoolImpl
private String vConnectURL;
private String vUsername;
private String vPassword;
public SeperateLoginApplicationPool()
public void setConnectInfo(String pUsername, String pPassword,
String pConnectURL)
this.vUsername = pUsername;
this.vPassword = pPassword;
this.vConnectURL = pConnectURL;
protected void connect(ApplicationModule appModule)
if (!appModule.getTransaction().isConnected())
appModule.getTransaction().connect(vConnectURL ,
vUsername, vPassword);
//use Optimistic locking as default for all transactions
appModule.getTransaction().setLockingMode
(oracle.jbo.Transaction.LOCK_OPTIMISTIC);
* checkin
* @param appModule
public synchronized void checkin(ApplicationModule appModule)
// release the instance regardless of the release mode
// this is necessary since we need a fresh instance each
time.
this.releaseInstance(appModule);
this.releaseInstances();
public void disconnect(ApplicationModule pAppModule, boolean
pRetainState)
super.disconnect(pAppModule, pRetainState);
Here is the code of the applicationPool datatag:
* @author Juan Oropeza
* @author Ief Cuynen
* @version 1.1
/* Modification history
package be.cronos.dbwise.datatags;
import be.cronos.dbwise.jbo.SeperateLoginApplicationPool;
import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.JspException;
import java.io.StringWriter;
import java.io.PrintWriter;
import oracle.jbo.html.jsp.ConnectionInfo;
import oracle.jbo.common.ampool.PoolMgr;
import oracle.jbo.common.ampool.ApplicationPool;
import oracle.jbo.ApplicationModule;
import oracle.jbo.html.jsp.JSPApplicationRegistry;
import java.util.Properties;
import java.util.Hashtable;
import java.util.Enumeration;
public class ApplicationModuleTag extends TagSupport
String fApplicationName;
String fConfigName;
String fUsername;
String fPassword;
String fConnectionURL;
String fIiopUserName;
String fIiopPassword;
JSPApplicationRegistry fAppRegistry;
public ApplicationModuleTag()
public void setId(String pAppName)
{ this.fApplicationName = pAppName; }
public void setConfigname(String pValue)
{ this.fConfigName = pValue; }
* doEndTag
* @return int
* @exception javax.servlet.jsp.JspException
public int doEndTag() throws JspException
try
SeperateLoginApplicationPool pool = null;
init();
// Get an application module resource.
fAppRegistry = JSPApplicationRegistry.getInstance();
// this step will access the custom pool from the property
file
appRegistry.registerApplicationFromPropertyFile
(fApplicationName);
// Since we don't want to use a
PropertyFile per AM, we have written are own
registerApplicationModule method
this.registerApplicationModule();
// get an instance of the pool, which is already existing
pool = (SeperateLoginApplicationPool)
PoolMgr.getInstance().getPool(fApplicationName);
// get an instance of the application module
synchronized(pool)
// Setup the connection information
pool.setConnectInfo(fUsername, fPassword,
fConnectionURL);
// This instance will be used by the rest of the
DataWebBeans since it’s part of the context.
try
//After the BC4J
container timeout, this method will raise an exception
ApplicationModule am =
fAppRegistry.getAppModuleInstance(fApplicationName, pageContext);
catch(Exception e)
System.out.println
("JspRegistry has failed to get application module instance");
setPageContextValues();
catch(Exception ex)
StringWriter writer = new StringWriter();
PrintWriter prn = new PrintWriter(writer);
ex.printStackTrace(prn);
prn.flush();
throw new JspException(writer.toString());
return SKIP_BODY;
* for internal use only
private void init()
fUsername = (String)pageContext.getSession().getValue
("username");
fPassword = (String)pageContext.getSession().getValue
("password");
fConnectionURL = (String)pageContext.getSession().getValue
("connectionURL");
private void setPageContextValues()
// place default renderers into session, these will not be
exposed via config file
pageContext.getSession().putValue
("oracle_ord_im_OrdImageDomain_Renderer", "oracle.ord.html.OrdBui
ldURL");
pageContext.getSession().putValue
("oracle_ord_im_OrdAudioDomain_Renderer","oracle.ord.html.OrdBuil
dURL");
pageContext.getSession().putValue
("oracle_ord_im_OrdVideoDomain_Renderer","oracle.ord.html.OrdBuil
dURL");
pageContext.getSession().putValue
("oracle_ord_im_OrdVirDomain_Renderer", "oracle.ord.html.OrdBuild
URL");
pageContext.getSession().putValue
("oracle_ord_im_OrdImageDomain_EditRenderer", "oracle.ord.html.Fi
leUploadField");
pageContext.getSession().putValue
("oracle_ord_im_OrdAudioDomain_EditRenderer", "oracle.ord.html.Fi
leUploadField");
pageContext.getSession().putValue
("oracle_ord_im_OrdVideoDomain_EditRenderer", "oracle.ord.html.Fi
leUploadField");
pageContext.getSession().putValue
("oracle_ord_im_OrdVirDomain_EditRenderer", "oracle.ord.html.File
UploadField");
protected synchronized void registerApplicationModule()
PoolMgr vPoolMgr = PoolMgr.getInstance();
try
if (!vPoolMgr.isPoolCreated(fApplicationName))
// Parse the ConfigName
String vConfigPackage =
fConfigName.substring(0, fConfigName.lastIndexOf('.'));
String vConfigSection = fConfigName.substring
(fConfigName.lastIndexOf('.') + 1);
//Strip out the AM Class
vConfigPackage =
vConfigPackage.substring(0, vConfigPackage.lastIndexOf('.'));
Properties vProps = new Properties();
vProps.put("ConfigName",fConfigName);
ApplicationPool vAppPool =
vPoolMgr.createPool(fApplicationName,vConfigPackage,
vConfigSection, vProps);
vAppPool.setUserName
(this.fUsername);
vAppPool.setPassword
(this.fPassword);
catch (Exception ex)
ex.printStackTrace();
throw new RuntimeException(ex.toString
* release() called after doEndTag() to reset state
public void release()
super.release();
fApplicationName = null;
fConfigName = null;
fUsername = null;
fPassword = null;
fConnectionURL = null;
fIiopUserName = null;
fIiopPassword = null;
JSPApplicationRegistry fAppRegistry = null;
Another thing is that the JSPApplicationRegistry contains a bug
(I think)
It doesn't use the HttpSessionTimeOut variable at all (see
following code)
this piece of code is a Method from the
JSPApplicationRegistry.java File taken from package
oracle.jbo.html.jsp;
static synchronized public void
registerApplicationFromPropertyFile(HttpSession session, String
sPropFileName)
if(!mPoolManager.isPoolCreated(sPropFileName))
registerApplicationFromPropertyFile(sPropFileName);
if (!PropertyConstants.TRUE.equals((String)session.getValue
(SESSION_INITIALIZED)))
Hashtable settings = getAppSettings(sPropFileName);
/* The timeout variable is declared here */
int nTimeOut = 300;
if (settings != null)
// see if we have a setting for the session timeout
String sTimeOut;
/* get the HttpSessionTimeOut variable */
if(settings.get("HttpSessionTimeOut") != null)
sTimeOut = (String)settings.get
("HttpSessionTimeOut");
if(sTimeOut != null)
/* Put the value in the variable... and that's the last thing it
does. nTimeOut isn't used anywhere in the class */
nTimeOut = Integer.parseInt(sTimeOut);
if(settings.get("ImageBase") != null)
session.putValue("ImageBase", settings.get
("ImageBase"));
else
settings.put("ImageBase", "/webapp/images");
session.putValue("ImageBase", "/webapp/images");
if(settings.get("CSSURL") != null)
session.putValue("CSSURL",settings.get("CSSURL"));
else
settings.put("CSSURL", "/webapp/css/oracle.css");
session.putValue
("CSSURL", "/webapp/css/oracle.css");
// place default renderers into session, these will not
be
// exposed via config file
session.putValue
("oracle_ord_im_OrdImageDomain_Renderer", "oracle.ord.html.OrdBui
ldURL");
session.putValue
("oracle_ord_im_OrdAudioDomain_Renderer","oracle.ord.html.OrdBuil
dURL");
session.putValue
("oracle_ord_im_OrdVideoDomain_Renderer","oracle.ord.html.OrdBuil
dURL");
session.putValue
("oracle_ord_im_OrdVirDomain_Renderer", "oracle.ord.html.OrdBuild
URL");
session.putValue
("oracle_ord_im_OrdImageDomain_EditRenderer", "oracle.ord.html.F
ileUploadField");
session.putValue
("oracle_ord_im_OrdAudioDomain_EditRenderer", "oracle.ord.html.F
ileUploadField");
session.putValue
("oracle_ord_im_OrdVideoDomain_EditRenderer", "oracle.ord.html.F
ileUploadField");
session.putValue
("oracle_ord_im_OrdVirDomain_EditRenderer", "oracle.ord.html.F
ileUploadField");
session.putValue(SESSION_INITIALIZED,
PropertyConstants.TRUE);
Am I mistaken or is it a bug?
Thank you for your fast response.
Greetings,
Ief CuynenFirst of all we get an JBO-30003: "The application pool, {AM Name}, failed to checkout an application module
instance."
The JBO-30003 exception is thrown whenever the pool cannot
properly create/recycle an application module. Please see the
exception details (scan the exception stack to find the exception
details) for more information regarding the "root" cause of the
exception.
We haven't found a way to alter the BC4J container timeout. Where do we customize the timeout?
The BC4J container is timed out when the HttpSession is timed
out. The session timeout is configurable via the web.xml file
for the J2EE application. Your servlet container may also
include another mechanism for setting a session timeout.
Second problem is that the J2EE Container stops functioning after a couple of requests. Even if an other browser
is started (on the same or different machine) the Container does
not respond to any request. We have found a Thread on technet
handling this kind of problem but the solution doesn't work in
our case.
The issue sounds like a deadlock. Please use kill -3 (Solaris)
or ctrl-break (NT) at the java server console to print the thread
stack trace to stdout. This will contain more information
regarding which threads are blocked and where. If you would like
you can send the stack trace to me via mail and I can take a look
at it.
The solution of synchronizing your pages with the HttpSession
context is required only if you are using the BC4J datatags with
HTML frames (i.e. have multi-threaded application module
access for a given session). Please note that this solution may
have a performance impact and should not be implemented unless
absolutely necessary.
Another thing is that the JSPApplicationRegistry contains a bug (I think). It doesn't use the HttpSessionTimeOut variable
at all (see following code)
This parameter was deprecated after 3.1. It looks like the code
which used the parameter may have been removed prematurely.
Sorry for the confusion. Please use the J2EE compliant
mechanisms mentioned above to configure the session timeout in
3.2.
Finally, please note that JDeveloper9i includes new integrated
features for the often requested feature of supporting different
db users with the same application pool! Please stay tuned. -
URGENT! Problems with On-Commit and Key-Commit triggers!!
Hi there,
We are having a problem with our form actually saving a value to the database after the commit_form is given.
When we hit the Save Button (which triggers the Key-Commit, and that in turn triggers the On-Commit trigger) we want a populated global variable to save to the database. Now when we hit Save, we can see the field get populated properly with this Global Variable (Global.Last_Tckt_Read), BUT it doesn't save to the database.
Here is the code from the On-Commit trigger:
IF :cg$bf_meter.closing_ticket_issued = 'N'
THEN
:CG$bf_meter.opening_meter_reading := :GLOBAL.LAST_TCKT_READ;
:CG$bf_meter.opening_meter_reading_date := :GLOBAL.LAST_TCKT_DATE;
:CG$bf_meter.closing_meter_reading_date := :CG$bf_meter.last_ticket_date;
:GLOBAL.PREV_METER_READING := :CG$BF_METER.LAST_TICKET_READING;
:GLOBAL.WINDOW_ACTIVE_CHECK := 'true';
:GLOBAL.FTDAYCHM_SAVED := 'true';
commit_form;
ELSE
:GLOBAL.PREV_METER_READING := :CG$BF_METER.LAST_TICKET_READING;
:GLOBAL.WINDOW_ACTIVE_CHECK := 'true';
:GLOBAL.FTDAYCHM_SAVED := 'true';
commit_form;
END IF;
The code in the Key-Commit trigger is just commit_form;. Now, the code from the On-Commit seems to work fine if its in the Key-Commit trigger -- BUT we need to use the On-Commit in case the user exits the Form with the Exit Button on the toolbar or "X" on the title bar (Neither the Exit Button and the "X" will call the Key-Commit trigger).
Any ideas how we can get this data value to actually SAVE in the database??
Thanks for any help -- please respond, this deadline has already passed!
MikeWell, I can't say I understand what you want, but:
1) if you have only commit_form in key-commit - then you do not need this trigger. key-commit will fire when F10 (commit) is pressed, but since it is doing the same - there is no need.
2) why don't you populate your block values to be saved right in SAVE button trigger and issue commit_form in the same trigger?
Then you can have key-commit to cover the same functionality for F10 with code:
go_item('save');
execute_trigger('when-button-pressed');
3) I cannot get the point of the "close" stuff - on close you want to check for changes or not? and to allow the user to exit with or without saving? -
¡URGENT! Problems with OCX in "runtime mode"
Hello everyboy, I have a problem with OCX. When I am developing, I have no problem inserting the OCX, but when I run the application, the OCX disappears, not exists.
I am using the Forms Builder [32 bits] Versión 6.0.8.25.2 ...
Ah, in the previous version Forms [32 bits] Versión 6.0.5.35.3, it worked
Do I need any patch?
¡Thank you very much!It's hard without seeing your specific application, but what
you need to do
is the following -
1. Add a recordset to the page
2. Place fields from this recordset into the cells of a table
as desired
3. Wrap the row with these cells in a looper/repeat region,
so that the
recordset is incremented from beginning to end as the records
are being
placed in the table and the page is built step by step
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Short_T" <[email protected]> wrote in
message
news:e8aafs$6gv$[email protected]..
> Hi everyone!
>
> Desparately need help in placing result of search from
MySQL database into
> individual cells of the table. If anyone can give me a
sample code/file,
> it
> would be most helpful! I have results from a display all
of the table, now
> I
> need to code so that particular results from fields are
displayed in
> assigned
> columns...
>
> Thank you in advance!
>
> Short_T
> -
i've recently started learning java, and i am having a few problems with writeing to files.
for example:
FileWriter outWriter = new FileWriter("file.txt");
char i = 1;
char z = '1'
outWriter.write(i);
outWriter.write(z);
outWriter.close();
this produces the output '1',
it doesnt seem a problem untill you want to include loops such as:
for (int count = 0; count < 100; count++)
outWriter.write(count);
this will produce the output '23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abc'
how would i get it to produce '50 51 52' etc. i have been experimenting and i cant seem to find a solution.
and sujestions would be very welcome.
Thanks,
Xenwell i wouldn't call it a weakness, it follows the Unicode (3) standard. Therefore all characters (char and Character) have a value assosiated with it.: A = 65, a = 97 etc etc.
Therefore, when you are using the char i = 1, the value of the "internal int" is set to 1. But when you use '1' the internal int is set to the intvalue that corresponds to the character 1, witch is 49. So the "real" intvalues for your chars are:
i = 1
z = 49
When you write this to your file, and open the file with a texteditor it will translate 1 and 49 to the corresponding cahracters (1 is not a printable cahracter so you get [] insted). If you open the file in a hex-editor, then you would se the values 1 and 49 (probably as 01 and 31 as it will display it in hexvalues).
Anyhow the proposed solution should work, you can also use the write(String str, int off, int len) - specified by API for OutputStreamWriter - to write a complete String to the file.
Poul Krogh -
Urgent: Facing problem with restoratio​n prosses
Good day,
I'm Facing problem with restoration process. During restoring my data from my PC to my Q10 phone using link app. the application reject my request & kept giving me following error:
Operation Cancelled.
Really need your help Gent’s & I'll be so much glad for anyone help me to solve this matter.
Thx.Hello
Are you restoring from same device to same device or to different device? -
Help me please, problem with image transition
Hi everybody,
For the past few months I have started teaching myself how to use dreamweaver. So far I have had a couple problems my limited knowledge just cant figure out and hoped somebody out there could shed a little light on it.
I am currently making a small portfolio site for my girlfriend but am having a few problems with trying to get the gallery the way she wants it. She want a black and white image to transition into colour on mouse over with small textbox to appear on mouseover also. I could not create a simple rollover image as she wanted the fade in and fade out to be slightly slower.
The rather simple idea I had for this was to create a div with a background image which would be the colour version. A black and white version imported over the top which transitions out to 0 opacity on mouseover.
The problem I have is when the mouse is removed and the mouseout behavior begins to bring the black and white version back. If the mouse is moved over image too quickly there seems to be a conflict between the 2 transitions and it begins to jump a little. You can have a look for yourself:
http://www.emmatait.com/gallery.html
I thought maybe if there was some code I could write in that would only make the mouseout behavior begin after all other functions were complete it would solve this but unfortunately I have no idea how to even go about this.
Any help would be appreciated.
Thanks all
AdamHi Adam,
In my opinion using image swap behaviors is counterproductive. It makes for slower loading pages and consumes bandwidth. This can be a problem for mobile device users who often pay for bandwidth usage.
I'm going to show a neat CSS trick for de-saturating color images. When you hover over the images, they turn to color and their opacity increases to 100%. Click on images to bring up the full size photos with captions.
http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml
Nancy O. -
Urgent: please help with LOV problem
Hi,
I created a record group and LOV (LOV1), also a text item set list of value property to LOV1. When I ran form, it showed the list, but when I selected one from the list, neither double click or click OK put anything into the text item. Could someone tell me what went wrong? Thanks a lot.
SaDid you set the "column mapping properties" so the LOV can know which value(s) to return to which form item(s)?
-
Urgent, Please help with new MIDI pedal
I just got an old awesome MIDI pedal the X-15 Ultrafoot. The pedal has two expression pedals and 10 pushbuttons/pushpads (as well as two buttons to scroll through banks, and a "mode" and "bypass" button).
What I want to is assign each pushbutton to a different parameter. I then want the expression pedal to be activated to whatever parameter I have selected. The problem is I do not know how to make the expression pedal exclusively control only the last parameter that was selected.
If somebody could help me with this I will be eternally gratefulHi Harm,
I tried moving the BCLK slider up to 140 in the following application provided by asus (its easier than in the BIOS) and the CPU went up from about 3450mhz to 3780mhz. The DRAM only went up to 562. I dont think im understanding what you mean by 2:10 mermory timings and getting the memory up to 1800, becuase it seems that i would need to increase BCLK to much higher than it is in order to get the DRAM from 562 to 1800? Shall I try push the BCLK up higher to 150 (is it safe?)
Below is the result of moving the BCLK slider from 130 to 140. It only moved to 562 Mhz ? Please can you explain how one gets this figure to be in the range of 1800mhz to 2000mhz -
Urgent! Problems with bridge JDBC-ODBC
Hello,
I have found out that JDBC-ODBC bridge in JDK 1.4.1 don't works fine, because, if you want to store text largest 254 characters in a field type text in one record of a Access database's table, it generate a SQLError, I have tried with EasySoft JDBC_ODBC and it works, with it I could store text fields largest than 254 characters, but I have new problems, EasySoft bridge is not free, and don't let store nulls in fields type Date [with PreparedStatement x, x.setDate(theDate)] (raise a SQLError), in the other hand, JDKs bridge do it. Somebody knows if exists JDCB-ODBC free drivers more suitables than JDK's includes, or if exists upgrades?
Is very urgent!, Thanks a lot
(Sorry, my english is very poor)I have tried it, Is there where I found the EasySoft's JDBC-ODBC driver, but the result is: one problems out, yes, now with this driver I can store String largest 254 characters in fields type MEMO of a table in Access Database, but two new problems, 1st. is a trial version, (requiere paid), and 2nd. don't let store nulls in fields type Date when JDKs JDBC-ODBC bridge lets, and the aplication needs leave this fields blanks.
Any other idea?
Thank -
Problem with byte[].length
dear sir
I am working with javacard 2.2.2, windows, jdk 1.5 and JCWDE
I would like to know the byte length of an array ("aCrypter" in this fallowing code)
1 public byte[] cryter(byte[] Crypter){
2
3 ecipher.init(key, Cipher.MODE_ENCRYPT);
4 ecipher.doFinal(Crypter, (short)0, (short)aCrypter.length, donneeCrypter , (short)0);
5
6 return donneeCrypter;
7 }
JCVM return an error on line 4 (it works with "(short)1"
there is a solution to know the array length?
regards
Alexis
Edited by: Alexis &quot;le francais&quot; on 21 mars 2011 07:33thanks for your help.
In fact I would like to crypt and after decrypt with this fallowing code:
private byte[] Crypto = {(byte)0xA0, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x62, (byte)0x03, (byte)0x01, (byte)0x0C,
(byte)0x0f, (byte)0x01, (byte)0x01};
public void process(APDU apdu) throws ISOException {
// TODO Auto-generated method stub
byte[] buffer = apdu.getBuffer();
if (this.selectingApplet()) return;
if (buffer[ISO7816.OFFSET_CLA] != CLA_MONAPPLET) {
ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
switch (buffer[ISO7816.OFFSET_INS]) {
case INS_INTERROGER_COMPTEUR:
tab = new byte[1000];
tab[0]= compteur;
tableau = cryter(tab);
tableau2= decrypter(tableau);
apdu.setOutgoing();
apdu.setOutgoingLength((short) 7);
apdu.sendBytesLong(tableau2,(short) 0, tableau2.lenght);
break;
public void initialisation(){
key = (DESKey)KeyBuilder.buildKey(KeyBuilder.TYPE_DES_TRANSIENT_DESELECT,KeyBuilder.LENGTH_DES, false);
key.setKey(Crypto, (short)0);
ecipher = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M2,false);
public byte[] decrypter(byte[] aDecrypter){
ecipher.init(key, Cipher.MODE_DECRYPT);
donneeDecrypte = new byte[10000];
ecipher.doFinal(aDecrypter, (short)0, (short)aDecrypter.length, donneeDecrypte, (short)0);
return donneeDecrypte;
public byte[] cryter(byte[] Crypter){
ecipher.init(key, Cipher.MODE_ENCRYPT);
donneeCrypter = new byte[10000];
ecipher.doFinal(Crypter, (short)0, (short)Crypter.length, donneeCrypter, (short)0);
return donneeCrypter;
}Now "crypter" method is executed, but when the debugger is at this fallowing line there is a problem :
tableau2= decrypter(tableau);maybe the size of the array?
>
return ecipher.doFinal(aCrypter);
>
I work with Javacard 2.2.2, this method does not exist in the API only :
abstract short doFinal270(byte[] inBuff, short inOffset, short inLength,byte[] outBuff, short outOffset)Edited by: le francais on 22 mars 2011 03:07
Maybe you are looking for
-
TEXT_IO.PUT_LINE resulting in partial file at a consistant size of 40KB
Overview: In client server mode the report opens a file on the desktop, writes a tab delimited text line for a specific repeating frame and then closes the file. However, the resulting file is incomplete but the previewer displays the compete report
-
At a complete loss.....problems downloading Java
I had Java on my laptop for ages and never had any problems until recently where it just wouldn't let me use it, kept getting an error message saying there were components missing...or something like that. Completely removed it from my laptop (well I
-
I did a system restore on my computer. When I had it up and running again, I downloaded the latest version of itunes. Now I can't sync apps to my sons ipod. What can I do to fix this?
-
Hi, i want to create an REM Backflush with Tcode MFBF but i have this error message : " Planned costing is not apdated " Please how to resolve this ? Regards. Edited by: jehade el aoumari on Feb 5, 2009 9:22 AM
-
Firefox sync can I sync my smart TV to my pc
I've got Windows 7 Home Premium and a all-in-one desktop pc (Inspiron one 2020, 4 GB RAM, 64-bit operating system and I'm wondering if I can sync my pc with my Samsung smart tv.