Did you talk on IRC (or via screensharing) with Daniel, Rafal, or Wyclif to
get help with the complex obs?


On Tue, Aug 20, 2013 at 11:50 AM, Lucas Falk Beier <notifications@github.com
> wrote:

> In
> omod/src/main/java/org/openmrs/module/registrationapp/page/controller/RegisterPatientPageController.java:
>
> > @@ -119,6 +131,17 @@ public void addModelAttributes(PageModel model, AppDescriptor app, NameTemplate
> >          model.addAttribute("enableOverrideOfAddressPortlet",
> >                  Context.getAdministrationService().getGlobalProperty("addresshierarchy.enableOverrideOfAddressPortlet", "false"));
> >      }
> > -
> > +
> > +    public void savePhotoInDirectory(String photo, int id) throws FileNotFoundException, IOException{    	
> > +    	String blobPhoto = photo.replaceAll("data:image/png;base64,", "");
> > +		BASE64Decoder decoder = new BASE64Decoder();
>
> I think there is something in Core that can do this, but we were having
> some problems to use complex obs and concept, so we decided implement the
> savePhotoInDirectory first to see the things working, while we keep
> studying complex obs and concepts.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openmrs/openmrs-module-registrationapp/pull/3/files#r5877486>
> .
>