A flexible graphene van der Waals homojunction for near-field optical imaging is achieved in ultraviolet spectrum.