Non ho capito l'errore che ti da, cmq prova a definire la variabile String strdata fuori dal corpo del try catch
Regole del Forum